feat: SPA polish — wrapup sections, shareable card, webhook instructions, blocked merge
Some checks failed
CI / Check / Test (push) Failing after 6m35s
Some checks failed
CI / Check / Test (push) Failing after 6m35s
This commit is contained in:
@@ -5,7 +5,6 @@ import {
|
||||
ArrowLeft,
|
||||
ChevronRight,
|
||||
Download,
|
||||
Globe,
|
||||
Key,
|
||||
LogOut,
|
||||
RefreshCw,
|
||||
@@ -69,22 +68,13 @@ function SettingsPage() {
|
||||
|
||||
const social: SettingsItem[] = [
|
||||
{
|
||||
label: t("settings.blockedUsers"),
|
||||
label: isAdmin ? t("settings.blockedUsersAndDomains") : t("settings.blockedUsers"),
|
||||
description: isAdmin ? t("settings.blockedUsersDescAdmin") : t("settings.blockedUsersDesc"),
|
||||
to: "/settings/blocked",
|
||||
icon: <ShieldBan className="size-4" />,
|
||||
},
|
||||
]
|
||||
|
||||
if (isAdmin) {
|
||||
social.push({
|
||||
label: t("settings.blockedDomains"),
|
||||
description: t("settings.blockedDomainsDesc"),
|
||||
to: "/settings/blocked",
|
||||
icon: <Globe className="size-4" />,
|
||||
})
|
||||
}
|
||||
|
||||
const handleLogout = () => {
|
||||
logout()
|
||||
navigate({ to: "/login" })
|
||||
|
||||
Reference in New Issue
Block a user