Move theme line of SettingsPage

Because I am schizophrenic.
This commit is contained in:
Brandon Presley 2022-12-29 17:27:43 +13:00
parent 7bf802ea45
commit 2b302bab73
1 changed files with 3 additions and 2 deletions

View File

@ -25,14 +25,15 @@ const defaultFormats = ['P', 'Pp', 'ccc p', 'p']
export default function SettingsPage() {
const [ignoring, setIgnoring] = useState(false)
const [term, setTerm] = useState('')
const {theme, setTheme, lightColor, setLightColor, darkColor, setDarkColor} =
useTheme()
const [formatOptions, setFormatOptions] = useState<string[]>(defaultFormats)
const [importing, setImporting] = useState(false)
const [settings, setSettings] = useState(new Settings())
const {reset} = useNavigation<NavigationProp<DrawerParamList>>()
const today = new Date()
const {theme, setTheme, lightColor, setLightColor, darkColor, setDarkColor} =
useTheme()
useEffect(() => {
settingsRepo.findOne({where: {}}).then(setSettings)
NativeModules.SettingsModule.ignoringBattery(setIgnoring)