diff --git a/src/navigation/seekHelpNav.tsx b/src/navigation/seekHelpNav.tsx index 6be1dfc..13615e5 100644 --- a/src/navigation/seekHelpNav.tsx +++ b/src/navigation/seekHelpNav.tsx @@ -7,9 +7,9 @@ import ResourceList from '@/screens/SeekHelp/ResourceList'; const Stack = createNativeStackNavigator(); export default function seekHelpNav() { return ( - - - - + + + + ); -} \ No newline at end of file +} diff --git a/src/screens/SeekHelp/ResourceList/index.tsx b/src/screens/SeekHelp/ResourceList/index.tsx index 39d00e7..c783d53 100644 --- a/src/screens/SeekHelp/ResourceList/index.tsx +++ b/src/screens/SeekHelp/ResourceList/index.tsx @@ -1,24 +1,31 @@ import React, { useEffect, useState } from 'react'; -import { Button, Text, View, TouchableOpacity } from 'react-native'; +import { Button, Text, TouchableOpacity, View } from 'react-native'; import { getSeekHelpData } from '@/supabase/queries/generalQueries'; import { Resource } from '@/types/types'; -import {styles} from './styles' +import { styles } from './styles'; + export default function ResourceList() { - const filters = ['General Resources', 'Health Organizations', 'LGBT Organizations', 'Legal Services', 'Government Resources'] + const filters = [ + 'General Resources', + 'Health Organizations', + 'LGBT Organizations', + 'Legal Services', + 'Government Resources', + ]; const [summaries, setSummaries] = useState([]); - useEffect(() => { - fetchData(); - }, []); + useEffect(() => { + fetchData(); + }, []); - const fetchData = async () => { - try { - const data = await getSeekHelpData(); - setSummaries(data); - } catch (error) { - console.error('Error fetching data:', error); - } - }; + const fetchData = async () => { + try { + const data = await getSeekHelpData(); + setSummaries(data); + } catch (error) { + console.error('Error fetching data:', error); + } + }; return ( @@ -30,36 +37,36 @@ export default function ResourceList() { - {summaries.length > 0 ? ( - summaries.map((resource, index) => ( - {resource.summary} - )) - ) : ( - Loading... - )} + {summaries.length > 0 ? ( + summaries.map((resource, index) => ( + {resource.summary} + )) + ) : ( + Loading... + )} ); } - // return( - // - - // - //