Skip to content

Commit 9bf9d7e

Browse files
authored
feat(profile-creator): add Profile Creator link to navigation and update toast notification in code snippet (#313)
1 parent 89148cc commit 9bf9d7e

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

app/docs/components/code-snippet.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ import { useState } from "react";
44

55
import { Check, Clipboard } from "lucide-react";
66
import ShikiHighlighter from "react-shiki";
7-
import { toast } from "sonner";
87

98
import { cn } from "@/lib/utils";
109

10+
import { toast } from "@/components/ui/8bit/toast";
1111
import { Button } from "@/components/ui/button";
1212
import { ScrollArea } from "@/components/ui/scroll-area";
1313

@@ -30,7 +30,7 @@ export default function CodeSnippet({
3030
setCopied(false);
3131
}, 3000);
3232

33-
toast.success("Copied to clipboard");
33+
toast("Copied to clipboard");
3434
};
3535

3636
return (

app/docs/components/copy-profile-card-dialog.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import {
33
Dialog,
44
DialogContent,
55
DialogDescription,
6-
DialogFooter,
76
DialogHeader,
87
DialogTitle,
98
DialogTrigger,
@@ -42,10 +41,6 @@ export default function CopyProfileCardDialog({ code }: ProfileCardProps) {
4241
</p>
4342

4443
<CodeSnippet>{code}</CodeSnippet>
45-
46-
<DialogFooter>
47-
<Button size="sm">Copy</Button>
48-
</DialogFooter>
4944
</DialogContent>
5045
</Dialog>
5146
);

config/nav-items.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,10 @@ export const navItems = {
213213
label: "Themes",
214214
href: "/themes",
215215
},
216+
{
217+
label: "Profile Creator",
218+
href: "/profile-creator",
219+
},
216220
],
217221
navMain: [
218222
{

0 commit comments

Comments
 (0)