diff --git a/package.json b/package.json index 408834cb..d7994132 100644 --- a/package.json +++ b/package.json @@ -82,7 +82,7 @@ }, "devDependencies": { "@types/bcryptjs": "^2.4.6", - "@types/node": "^20", + "@types/node": "^20.16.10", "@types/nodemailer": "^6.4.16", "@types/react": "^18", "@types/react-dom": "^18", @@ -97,6 +97,6 @@ "prisma": "^5.18.0", "tailwindcss": "^3.4.1", "ts-node": "^10.9.2", - "typescript": "^5" + "typescript": "^5.6.2" } -} +} \ No newline at end of file diff --git a/src/components/profile-menu.tsx b/src/components/profile-menu.tsx index 7deb2e10..eb34a405 100644 --- a/src/components/profile-menu.tsx +++ b/src/components/profile-menu.tsx @@ -10,12 +10,13 @@ import { import { signOut } from 'next-auth/react'; import Link from 'next/link'; import Icon from './ui/icon'; -import { toast } from './ui/use-toast'; +import { useToast } from '@/components/ui/use-toast'; // Add this import import APP_PATHS from '@/config/path.config'; import { useRouter } from 'next/navigation'; export function ProfileMenu() { const router = useRouter(); + const { toast } = useToast(); // Add this line const handleSignout = async () => { try { @@ -31,7 +32,7 @@ export function ProfileMenu() { } toast({ title: 'Logout successful!', - variant: 'success', + variant: 'default', // Change this to match your toaster's variants }); const redirect = APP_PATHS.HOME; router.push(redirect); @@ -42,6 +43,15 @@ export function ProfileMenu() { }); } }; + + const handleManageProfile = () => { + toast({ + title: 'Coming soon!', + description: 'This feature is not yet available.', + duration: 2000, + }); + }; + return ( @@ -55,6 +65,9 @@ export function ProfileMenu() { + + Manage Profile + Create Job