Skip to content

Commit

Permalink
format write
Browse files Browse the repository at this point in the history
  • Loading branch information
christianhelp committed Oct 24, 2024
1 parent 8d21805 commit eb94e99
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion apps/web/src/app/settings/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ function Header({ tag }: { tag: string }) {
{tag}
</h1>
);
}
}
2 changes: 1 addition & 1 deletion apps/web/src/components/settings/SettingsSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ interface ToggleItemProps {

export default function SettingsSection({ name, path }: ToggleItemProps) {
const currPath = usePathname();
// NOTE: usepathname hook does not include the fragment part such as #registration or #account so we will need to use the window to access this later
// NOTE: usepathname hook does not include the fragment part such as #registration or #account so we will need to use the window to access this later
return (
<Link href={path}>
<div
Expand Down
16 changes: 9 additions & 7 deletions apps/web/src/components/shared/ProfileButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -152,13 +152,15 @@ export default async function ProfileButton() {
Event Pass
</DropdownMenuItem>
</Link>
{['admin','super_admin','volunteer'].includes(user.role) && (
<Link href={`/admin`}>
<DropdownMenuItem className="cursor-pointer text-hackathon">
Admin
</DropdownMenuItem>
</Link>
)}
{["admin", "super_admin", "volunteer"].includes(
user.role,
) && (
<Link href={`/admin`}>
<DropdownMenuItem className="cursor-pointer text-hackathon">
Admin
</DropdownMenuItem>
</Link>
)}
<MobileNavBarLinks />
<DropdownMenuSeparator className="bg-[rgb(228,228,231)] dark:bg-[rgb(39,39,42)]" />
<Link href={`/bug-report`}>
Expand Down

0 comments on commit eb94e99

Please sign in to comment.