diff --git a/src/app/admin/user/LogoutUser.tsx b/src/app/admin/user/LogoutUser.tsx index 9ff93c25f..43ff181af 100644 --- a/src/app/admin/user/LogoutUser.tsx +++ b/src/app/admin/user/LogoutUser.tsx @@ -16,7 +16,7 @@ const LogoutUserComp = () => { const email = formData.get('email') as string; const adminPassword = formData.get('adminPassword') as string; const res = await logoutUser(email, adminPassword); - toast.info(res.message); + toast.info(res.message || res.error); }; return (
diff --git a/src/app/not-found.tsx b/src/app/not-found.tsx new file mode 100644 index 000000000..2e7c748b8 --- /dev/null +++ b/src/app/not-found.tsx @@ -0,0 +1,39 @@ +'use client'; +import Link from 'next/link'; +export default function GlobalError() { + return ( + + + 404: Page could not be found + + +
+

404

+

Oops! Page Not Found.

+
+ + + +
+ + {' '} + Go back to Home{' '} + +
+ + + ); +} diff --git a/tsconfig.json b/tsconfig.json index a1a9ee673..48187dc55 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -15,14 +15,14 @@ "incremental": true, "plugins": [ { - "name": "next" - } + "name": "next", + }, ], "paths": { "@/*": ["./src/*"], - "@public/*": ["./public/*"] - } + "@public/*": ["./public/*"], + }, }, "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], - "exclude": ["node_modules"] + "exclude": ["node_modules"], }