Delete Privacy.tsx

This commit is contained in:
Ryan Alexander 2021-08-22 12:26:01 +10:00 committed by GitHub
parent ccda5e8609
commit 04e42ae1c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,36 +0,0 @@
import styles from "./Panes.module.scss";
import { Text } from "preact-i18n";
import { dispatch } from "../../../redux";
import { connectState } from "../../../redux/connector";
import { SyncKeys, SyncOptions } from "../../../redux/reducers/sync";
import Checkbox from "../../../components/ui/Checkbox";
interface Props {
options?: SyncOptions;
}
export function Component(props: Props) {
return (
<div className={styles.notifications}>
<Checkbox
key={"everyone_dm"}
checked={false}
description={
<Text
id={`app.settings.pages.privacy.allow_dms.d`}
/>
}
onChange={(enabled) => {console.log(enabled)}}>
<Text id="app.settings.pages.privacy.allow_dms.t" />
</Checkbox>
</div>
);
}
export const Sync = connectState(Component, (state) => {
return {
options: state.sync,
};
});