Skip to content

Commit

Permalink
fixed the back button in the setting page.
Browse files Browse the repository at this point in the history
  • Loading branch information
maetheartist committed Aug 24, 2024
1 parent 9e6d878 commit c75180f
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ interface Iproperties {
}
const SettingsSidebar: FC<Iproperties> = ({ sideNavitems = sideItems }) => {
const pathname = usePathname();
const router = useRouter()
const router = useRouter();
const currentPath =
pathname?.split("/").length == 2 ? "general" : pathname?.split("/")[3];
const organizationPath = pathname?.split("/")[4];
Expand All @@ -106,8 +106,9 @@ const SettingsSidebar: FC<Iproperties> = ({ sideNavitems = sideItems }) => {
return (
<div className="h-screen w-[50px] flex-col items-center justify-center bg-[#FAFAFA] pt-6 md:block md:w-[304px] md:justify-start md:px-4">
<div className="mb-6 flex items-center justify-center md:justify-start md:gap-2">
<ChevronLeft className="h-5 w-5 text-neutral-dark-2 hover:text-red-400"
onClick={() => router.back()}
<ChevronLeft
className="h-5 w-5 text-neutral-dark-2 hover:text-red-400"
onClick={() => router.back()}
/>
<h2 className="hidden text-xl text-neutral-dark-2 md:block">
Settings
Expand Down

0 comments on commit c75180f

Please sign in to comment.