This commit is contained in:
Brandon Presley 2023-07-20 14:55:19 +12:00
parent 556347e632
commit 9833752bab
3 changed files with 6 additions and 3 deletions

View File

@ -261,7 +261,7 @@ export default function SettingsPage() {
[filter, selects, renderSelect],
)
const confirmDelete = useCallback(async() => {
const confirmDelete = useCallback(async () => {
setDeleting(false)
await AppDataSource.dropDatabase()
await AppDataSource.destroy()

View File

@ -29,7 +29,10 @@ function Switch({
style={{ marginRight: MARGIN }}
value={value}
onValueChange={onChange}
trackColor={{ true: colors.primary + '80', false: colors.surfaceDisabled }}
trackColor={{
true: colors.primary + '80',
false: colors.surfaceDisabled,
}}
/>
<Text>{title}</Text>
</Pressable>

View File

@ -1,8 +1,8 @@
import { NavigationContainer } from '@react-navigation/native'
import React from 'react'
import {
MD3DarkTheme,
DefaultTheme,
MD3DarkTheme,
Provider as PaperProvider,
} from 'react-native-paper'
import MaterialIcon from 'react-native-vector-icons/MaterialIcons'