import cleaning

This commit is contained in:
moist-webDev 2023-06-09 22:14:11 -04:00
parent 5305116649
commit 018f774a88
4 changed files with 6 additions and 12 deletions

View File

@ -1,7 +1,4 @@
import { StyleSheet, Text, View } from 'react-native'; import { StyleSheet, Text, View } from 'react-native';
import { useEffect, useState } from 'react';
import {darkTheme} from '../lib/theme';
import { color } from '@rneui/themed/dist/config';
export default function Home({theme}:any){ export default function Home({theme}:any){

View File

@ -1,9 +1,9 @@
import { StyleSheet, Text, View, ScrollView, Modal, TextInput, Switch, TouchableOpacity} from 'react-native'; import { StyleSheet, Text, View, ScrollView, Modal, TextInput, TouchableOpacity} from 'react-native';
import Button from '../components/Button'; import Button from '../components/Button';
import db from '../lib/client' import db from '../lib/client'
import { useState, useEffect } from 'react'; import { useState, useEffect } from 'react';
import { AntDesign, Ionicons } from '@expo/vector-icons'; import { AntDesign, Ionicons } from '@expo/vector-icons';
import { preSubmitMovieSchema, type PreSubmitMovie, MovieSchema, type Movie } from '../lib/schemas'; import { preSubmitMovieSchema, type PreSubmitMovie, type Movie } from '../lib/schemas';
export default function Movies({theme, movies, setMovies}:any){ export default function Movies({theme, movies, setMovies}:any){

View File

@ -1,9 +1,9 @@
import { StyleSheet, Text, View, ScrollView, Modal, TextInput, Switch, TouchableOpacity} from 'react-native'; import { StyleSheet, Text, View, ScrollView, Modal, TextInput, TouchableOpacity} from 'react-native';
import Button from '../components/Button'; import Button from '../components/Button';
import db from '../lib/client' import db from '../lib/client'
import { useState, useEffect } from 'react'; import { useState, useEffect } from 'react';
import { AntDesign, Ionicons } from '@expo/vector-icons'; import { AntDesign, Ionicons } from '@expo/vector-icons';
import { OtherSchema, PreSubmitOtherSchema, type Other, type PreSubmitOther } from '../lib/schemas'; import {PreSubmitOtherSchema, type Other, type PreSubmitOther } from '../lib/schemas';
export default function Other({theme, selCat, others, setOthers, setSelCat}:any){ export default function Other({theme, selCat, others, setOthers, setSelCat}:any){

View File

@ -2,10 +2,7 @@ import { StyleSheet, Text, View, Modal} from 'react-native';
import Button from '../components/Button'; import Button from '../components/Button';
import { useState, useEffect } from 'react'; import { useState, useEffect } from 'react';
import DropDownPicker from 'react-native-dropdown-picker'; import DropDownPicker from 'react-native-dropdown-picker';
import AsyncStorage from '@react-native-async-storage/async-storage';
import RNExitApp from 'react-native-exit-app';
import db from '../lib/client'; import db from '../lib/client';
import { light } from '../lib/theme';
export default function Settings({theme, changeTheme, themeMode, clearAll}:any){ export default function Settings({theme, changeTheme, themeMode, clearAll}:any){
@ -47,8 +44,8 @@ export default function Settings({theme, changeTheme, themeMode, clearAll}:any){
<View style={st.modalContainer}> <View style={st.modalContainer}>
<Text style={{...st.text, margin: 10}}>Are you sure you want to delete all data?</Text> <Text style={{...st.text, margin: 10}}>Are you sure you want to delete all data?</Text>
<View style={st.modalButtons}> <View style={st.modalButtons}>
<Button theme={theme} title="No" onPress={() => setDeleteAllModal(false)} style={{width:'28%', padding:30}}/> <Button theme={theme} title="No" onPress={() => setDeleteAllModal(false)} style={{padding:30}}/>
<Button theme={theme} title="Yes" onPress={() => {clearAll();setDeleteAllModal(false)}} style={{backgroundColor: theme.danger, width:'28%', padding:30}}/> <Button theme={theme} title="Yes" onPress={() => {clearAll();setDeleteAllModal(false)}} style={{backgroundColor: theme.danger, padding:30}}/>
</View> </View>
</View> </View>
</View> </View>