mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-07 09:25:27 +00:00
Fix i18n for server settings.
Start work on roles. Add temporary age gate.
This commit is contained in:
@@ -13,11 +13,12 @@ import ButtonItem from "../../components/navigation/items/ButtonItem";
|
||||
|
||||
interface Props {
|
||||
pages: {
|
||||
category?: Children,
|
||||
divider?: boolean,
|
||||
id: string,
|
||||
category?: Children
|
||||
divider?: boolean
|
||||
id: string
|
||||
icon: Children
|
||||
title: Children
|
||||
hideTitle?: boolean
|
||||
}[]
|
||||
custom?: Children
|
||||
children: Children
|
||||
@@ -96,7 +97,7 @@ export function GenericSettings({ pages, switchPage, category, custom, children,
|
||||
)}
|
||||
{(!isTouchscreenDevice || typeof page === "string") && (
|
||||
<div className={styles.content}>
|
||||
{!isTouchscreenDevice && (
|
||||
{!isTouchscreenDevice && !(pages.find(x => x.id === page && x.hideTitle)) && (
|
||||
<h1>
|
||||
<Text
|
||||
id={`app.settings.${category}.${page ?? defaultPage}.title`}
|
||||
|
||||
Reference in New Issue
Block a user