chore: delete intermediate

This commit is contained in:
Paul Makles
2022-07-05 21:13:42 +01:00
parent f7ff7d0dfe
commit f9c6f5cd9d
35 changed files with 129 additions and 1104 deletions

View File

@@ -0,0 +1,32 @@
import { Text } from "preact-i18n";
import { ModalForm } from "@revoltchat/ui";
import { state } from "../../../mobx/State";
import { ModalProps } from "../types";
/**
* Import theme modal
*/
export default function ImportTheme({ ...props }: ModalProps<"import_theme">) {
return (
<ModalForm
{...props}
title={<Text id="app.settings.pages.appearance.import_theme" />}
schema={{
data: "text",
}}
data={{
data: {
field: (
<Text id="app.settings.pages.appearance.theme_data" />
) as React.ReactChild,
},
}}
callback={async ({ data }) =>
state.settings.theme.hydrate(JSON.parse(data))
}
/>
);
}