-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
71 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
'use client' | ||
|
||
import { Button } from '@nextui-org/react' | ||
import React from 'react' | ||
import { CircleHelp } from 'lucide-react' | ||
import { useButtonStore } from '~/app/providers/button-store-Providers' | ||
|
||
export default function TagHelp() { | ||
const { setTagHelp } = useButtonStore( | ||
(state) => state, | ||
) | ||
return ( | ||
<Button | ||
isIconOnly | ||
size="sm" | ||
color="warning" | ||
aria-label="帮助" | ||
onClick={() => setTagHelp(true)} | ||
> | ||
<CircleHelp /> | ||
</Button> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
'use client' | ||
|
||
import { Sheet, SheetContent, SheetDescription, SheetHeader, SheetTitle } from '~/components/ui/Sheet' | ||
import { useButtonStore } from '~/app/providers/button-store-Providers' | ||
|
||
export default function TagHelpSheet() { | ||
const { tagHelp, setTagHelp } = useButtonStore( | ||
(state) => state, | ||
) | ||
|
||
return ( | ||
<Sheet | ||
defaultOpen={false} | ||
open={tagHelp} | ||
onOpenChange={(open: boolean) => { | ||
if (!open) { | ||
setTagHelp(false) | ||
} | ||
}} | ||
modal={false} | ||
> | ||
<SheetContent side="left"> | ||
<SheetHeader> | ||
<SheetTitle>帮助</SheetTitle> | ||
<SheetDescription className="space-y-2"> | ||
<p> | ||
您要展示除⌈首页⌋外的其它相册,需要添加新的⌈标签⌋,并标记为可显示状态。 | ||
</p> | ||
<p> | ||
⌈标签⌋的⌈路由⌋需要带 / 前缀。 | ||
</p> | ||
</SheetDescription> | ||
</SheetHeader> | ||
</SheetContent> | ||
</Sheet> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters