mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-24 16:10:59 -05:00
chore(settings): add dummy element for index
This commit is contained in:
parent
6e4c4f3ae2
commit
9415c2b5d8
3 changed files with 8 additions and 1 deletions
2
external/lang
vendored
2
external/lang
vendored
|
@ -1 +1 @@
|
|||
Subproject commit 9b9858c64503783364dffba18b2a5356d11cdc30
|
||||
Subproject commit 59fbe7c9437a4d2b477d72543b28174dd2b11c5f
|
|
@ -41,6 +41,7 @@ interface Props {
|
|||
showExitButton?: boolean;
|
||||
switchPage: (to?: string) => void;
|
||||
category: "pages" | "channel_pages" | "server_pages";
|
||||
indexHeader?: Children;
|
||||
}
|
||||
|
||||
export function GenericSettings({
|
||||
|
@ -51,6 +52,7 @@ export function GenericSettings({
|
|||
children,
|
||||
defaultPage,
|
||||
showExitButton,
|
||||
indexHeader,
|
||||
}: Props) {
|
||||
const history = useHistory();
|
||||
const theme = useContext(ThemeContext);
|
||||
|
@ -132,6 +134,7 @@ export function GenericSettings({
|
|||
<div className={styles.sidebar}>
|
||||
<div className={styles.scrollbox}>
|
||||
<div className={styles.container}>
|
||||
{indexHeader}
|
||||
{pages.map((entry, i) =>
|
||||
entry.hidden ? undefined : (
|
||||
<>
|
||||
|
|
|
@ -20,6 +20,7 @@ import {
|
|||
} from "@styled-icons/boxicons-solid";
|
||||
import { Route, Switch, useHistory } from "react-router-dom";
|
||||
import { LIBRARY_VERSION } from "revolt.js";
|
||||
import styled from "styled-components";
|
||||
|
||||
import styles from "./Settings.module.scss";
|
||||
import { Text } from "preact-i18n";
|
||||
|
@ -53,6 +54,8 @@ import { Sessions } from "./panes/Sessions";
|
|||
import { Sync } from "./panes/Sync";
|
||||
import { ThemeShop } from "./panes/ThemeShop";
|
||||
|
||||
const IndexHeader = styled.div``;
|
||||
|
||||
export default function Settings() {
|
||||
const history = useHistory();
|
||||
const client = useContext(AppContext);
|
||||
|
@ -258,6 +261,7 @@ export default function Settings() {
|
|||
</div>
|
||||
</>
|
||||
}
|
||||
indexHeader={<IndexHeader>{/**/}</IndexHeader>}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue