diff --git a/src/app/app/dashboard/client.tsx b/src/app/app/dashboard/client.tsx index 2e6d13d..251b8d4 100644 --- a/src/app/app/dashboard/client.tsx +++ b/src/app/app/dashboard/client.tsx @@ -1,4 +1,4 @@ -import { useEffect, useState } from "react"; +import { useState } from "react"; import { IconResumes, IconTemplates, IconSettings, IconAI } from "@/components/shared/icons/SidebarIcons"; import { usePathname, useRouter } from "@/lib/navigation"; import { @@ -65,12 +65,6 @@ const DashboardLayout = ({ children }: { children: React.ReactNode }) => { "icon" ); - useEffect(() => { - if (pathname.includes("/workbench")) { - setOpen(false); - } - }, [pathname]); - const handleItemClick = (item: MenuItem) => { if (item.items) { diff --git a/src/app/app/dashboard/resumes/page.tsx b/src/app/app/dashboard/resumes/page.tsx index 4b63351..55cf089 100644 --- a/src/app/app/dashboard/resumes/page.tsx +++ b/src/app/app/dashboard/resumes/page.tsx @@ -73,7 +73,7 @@ const ResumeCardItem = ({ id, resume, t, locale, setActiveResume, router, delete "dark:hover:border-primary/40" )} > - { setActiveResume(id); router.push(`/app/workbench/${id}`); }}> +
- +
@@ -131,7 +131,7 @@ const ResumeCardItem = ({ id, resume, t, locale, setActiveResume, router, delete {t("common.edit")} - + { transition={{ duration: 0.3 }} className="flex-1 space-y-6 py-8" > - - {hasConfiguredFolder ? ( - - - - {t("dashboard.resumes.synced")} - - - - - ) : ( - - - {t("dashboard.resumes.notice.title")} - - - {t("dashboard.resumes.notice.description")} - - - - - )} - - - -

- {t("dashboard.resumes.myResume")} -

-
- - - - - - -
-
- - -
- - - - + {hasConfiguredFolder ? ( + + + + {t("dashboard.resumes.synced")} + + + + + ) : ( + + + {t("dashboard.resumes.notice.title")} + + + {t("dashboard.resumes.notice.description")} + + + + + )} + - - {Object.entries(resumes).map(([id, resume], index) => ( - - ))} - -
+ +

+ {t("dashboard.resumes.myResume")} +

+
+ + + + + + +
+
+ + +
+ + + + + + + + {t("dashboard.resumes.newResume")} + + + {t("dashboard.resumes.newResumeDescription")} + + + + + + + {Object.entries(resumes).map(([id, resume], index) => ( + + ))} + +
+
-
); };