Skip to content

Commit

Permalink
fix: member role menu
Browse files Browse the repository at this point in the history
  • Loading branch information
naiba committed Dec 23, 2024
1 parent b9cee05 commit 5bd2466
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/components/settings-tab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ export const SettingsTab = ({ className }: { className?: string }) => {
<TabsTrigger value="/dashboard/settings/user" asChild>
<Link to="/dashboard/settings/user">{t("User")}</Link>
</TabsTrigger>
<TabsTrigger value="/dashboard/settings/online-user" asChild>
<Link to="/dashboard/settings/online-user">{t("OnlineUser")}</Link>
</TabsTrigger>
</>
)}
<TabsTrigger value="/dashboard/settings/online-user" asChild>
<Link to="/dashboard/settings/online-user">{t("OnlineUser")}</Link>
</TabsTrigger>
<TabsTrigger value="/dashboard/settings/waf" asChild>
<Link to="/dashboard/settings/waf">{t("WAF")}</Link>
</TabsTrigger>
Expand Down
2 changes: 1 addition & 1 deletion src/routes/settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export default function SettingsPage() {
const isAdmin = profile?.role === 0

if (!isAdmin) {
navigate("/dashboard/settings/waf")
navigate("/dashboard/settings/online-user")
}

const form = useForm<z.infer<typeof settingFormSchema>>({
Expand Down

0 comments on commit 5bd2466

Please sign in to comment.