Skip to content

Commit

Permalink
feat: intialize database is done
Browse files Browse the repository at this point in the history
  • Loading branch information
foloy authored and foloy committed Oct 11, 2023
1 parent 8385da3 commit 61eefe3
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions lib/DummyQueries.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { View } from 'react-native';
import { Button, Text } from 'react-native-elements';
import { Text } from 'react-native-elements';
import { TouchableOpacity } from 'react-native-gesture-handler';
import styles from '../src/app/styles';
import supabase from './supabase';

export default function DummyQueries() {
Expand Down Expand Up @@ -43,10 +45,18 @@ export default function DummyQueries() {

return (
<View>
<Button title="Get Case Data" onPress={() => allCases()} />
<Button title="Get Case Data" onPress={() => approvedCases()} />
<Button title="Get Case Data" onPress={() => unapprovedCases()} />
<Button title="Get Case Data" onPress={() => addCase()} />
<TouchableOpacity style={styles.button} onPress={() => allCases()}>
<Text>Get All Cases</Text>
</TouchableOpacity>
<TouchableOpacity style={styles.button} onPress={() => approvedCases()}>
<Text>Get Approved Cases</Text>
</TouchableOpacity>
<TouchableOpacity style={styles.button} onPress={() => unapprovedCases()}>
<Text>Get Unapproved Cases</Text>
</TouchableOpacity>
<TouchableOpacity style={styles.button} onPress={() => addCase()}>
<Text>Add a Dummy Case</Text>
</TouchableOpacity>
<Text>{queryHolder ? '' : queryHolder}</Text>
</View>
);
Expand Down

0 comments on commit 61eefe3

Please sign in to comment.