DmSettings: fix color

This commit is contained in:
Liam Fitzgerald 2021-06-02 12:51:40 +10:00
parent 377f536276
commit a46b426292
No known key found for this signature in database
GPG Key ID: D390E12C61D1CFFB

View File

@ -1,9 +1,7 @@
import { import {
Col, Col,
Box, Box,
Text, ManagedToggleSwitchField
ManagedRadioButtonField as Radio,
ManagedToggleSwitchField,
} from '@tlon/indigo-react'; } from '@tlon/indigo-react';
import { Form, Formik } from 'formik'; import { Form, Formik } from 'formik';
import React, { useCallback } from 'react'; import React, { useCallback } from 'react';
@ -13,7 +11,7 @@ import { AsyncButton } from '~/views/components/AsyncButton';
export function DmSettings(props: { api: GlobalApi }) { export function DmSettings(props: { api: GlobalApi }) {
const { api } = props; const { api } = props;
const screening = useGraphState((s) => s.screening); const screening = useGraphState(s => s.screening);
const initialValues = { accept: !screening }; const initialValues = { accept: !screening };
const onSubmit = useCallback( const onSubmit = useCallback(
async (values, actions) => { async (values, actions) => {
@ -26,9 +24,9 @@ export function DmSettings(props: { api: GlobalApi }) {
return ( return (
<Col p="5" gapY="5" width="100%" height="100%"> <Col p="5" gapY="5" width="100%" height="100%">
<Col gapY="1"> <Col gapY="1">
<Box fontSize="2">Privacy</Box> <Box color="black" fontSize="2">Privacy</Box>
<Box fontSize="1" color="gray"> <Box fontSize="1" color="gray">
Control other people's ability to message you Control other people&apos;s ability to message you
</Box> </Box>
</Col> </Col>
<Col> <Col>