1
0
Fork 0

move settings into a grid

This commit is contained in:
ChaotiCryptidz 2022-01-19 14:14:13 +00:00
parent 2a3edaf18a
commit 9fffb275d1

View file

@ -1,6 +1,7 @@
import { Component } from "preact"; import { Component } from "preact";
import { DefaultPageProps } from "../../../types/DefaultPageProps"; import { DefaultPageProps } from "../../../types/DefaultPageProps";
import { GeneralSettings } from "./GeneralSettings"; import { GeneralSettings } from "./GeneralSettings";
import { Grid, GridSizes } from "../../elements/Grid";
import { KeyValueEditorSettings } from "./KeyValueEditorSettings"; import { KeyValueEditorSettings } from "./KeyValueEditorSettings";
import { PageTitle } from "../../elements/PageTitle"; import { PageTitle } from "../../elements/PageTitle";
import i18next from "i18next"; import i18next from "i18next";
@ -10,12 +11,14 @@ export class Settings extends Component<DefaultPageProps> {
return ( return (
<> <>
<PageTitle title={i18next.t("settings_title")} /> <PageTitle title={i18next.t("settings_title")} />
<div> <Grid size={GridSizes.NORMAL}>
<GeneralSettings {...this.props} /> <div>
</div> <GeneralSettings {...this.props} />
<div> </div>
<KeyValueEditorSettings {...this.props} /> <div>
</div> <KeyValueEditorSettings {...this.props} />
</div>
</Grid>
</> </>
); );
} }