import cleaning
This commit is contained in:
parent
5305116649
commit
018f774a88
|
|
@ -1,7 +1,4 @@
|
|||
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){
|
||||
|
|
|
|||
|
|
@ -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 db from '../lib/client'
|
||||
import { useState, useEffect } from 'react';
|
||||
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){
|
||||
|
|
|
|||
|
|
@ -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 db from '../lib/client'
|
||||
import { useState, useEffect } from 'react';
|
||||
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){
|
||||
|
|
|
|||
|
|
@ -2,10 +2,7 @@ import { StyleSheet, Text, View, Modal} from 'react-native';
|
|||
import Button from '../components/Button';
|
||||
import { useState, useEffect } from 'react';
|
||||
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 { light } from '../lib/theme';
|
||||
|
||||
|
||||
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}>
|
||||
<Text style={{...st.text, margin: 10}}>Are you sure you want to delete all data?</Text>
|
||||
<View style={st.modalButtons}>
|
||||
<Button theme={theme} title="No" onPress={() => setDeleteAllModal(false)} style={{width:'28%', padding:30}}/>
|
||||
<Button theme={theme} title="Yes" onPress={() => {clearAll();setDeleteAllModal(false)}} style={{backgroundColor: theme.danger, 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, padding:30}}/>
|
||||
</View>
|
||||
</View>
|
||||
</View>
|
||||
|
|
|
|||
Loading…
Reference in New Issue