Skip to content

Commit

Permalink
Quick Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
stoneliuCS committed Dec 1, 2024
1 parent edcbd83 commit d3f2465
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions frontend/app/(app)/(tabs)/explore.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import {
TouchableOpacity,
TextInput,
ActivityIndicator,
KeyboardAvoidingView,
} from 'react-native';
import { useQuery } from '@tanstack/react-query';
import { fetchData } from '../../../api/base';
Expand Down Expand Up @@ -134,9 +133,9 @@ export default function Explore() {
const renderSearchResults = () => {
if (isPending && search.length > 0) {
return (
<KeyboardAvoidingView className="flex-1 justify-center items-center">
<View className="flex-1 justify-center items-center mb-48">
<ActivityIndicator size="large" color="#0000ff" />
</KeyboardAvoidingView>
</View>
);
}

Expand Down Expand Up @@ -229,13 +228,19 @@ export default function Explore() {
setMapSearch('');
setSearch('');
setToggle(options[0]);
setSelected(options[0]);
data;
setSelectedCategory(s);
}}
/>
</View>
{selectedCategory === 'Map' &&
renderCustomInput(setMapSearch, mapSearch, changeMapText, '20 20')}
renderCustomInput(
setMapSearch,
mapSearch,
changeMapText,
'Enter a coordinate i.e. "20 20"',
)}
{selectedCategory === 'Search' && renderSearchPage()}
<InfoPopup />
</View>
Expand Down

0 comments on commit d3f2465

Please sign in to comment.