-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
18932ce
commit b2a7d6d
Showing
11 changed files
with
175 additions
and
126 deletions.
There are no files selected for viewing
47 changes: 27 additions & 20 deletions
47
frontend/sac-mobile/app/(app)/search/_components/club-card.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 15 additions & 6 deletions
21
frontend/sac-mobile/app/(app)/search/_components/top-search.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,25 @@ | ||
import { Club } from "@/types/club"; | ||
import { useState, useEffect } from "react"; | ||
import { ScrollView, Text, View, ViewProps } from "react-native"; | ||
import { ScrollView, Text, TouchableOpacity, View, ViewProps } from "react-native"; | ||
|
||
import SearchIcon from "@/assets/images/svg/search.svg"; | ||
import { router } from "expo-router"; | ||
|
||
export interface TopSearchProps extends ViewProps {} | ||
export interface TopSearchProps extends ViewProps { | ||
search: string | ||
} | ||
|
||
export const TopSearch = (p: TopSearchProps) => { | ||
return ( | ||
<View {...p} className="elevation bg-white rounded-xl flex flex-row p-3 items-center"> | ||
<SearchIcon className="w-5 h-5"></SearchIcon> | ||
<Text className="ml-2 text-xs">Top Search</Text> | ||
</View> | ||
<TouchableOpacity | ||
onPress={() => { | ||
router.push(`/search/results/${p.search}`) | ||
}}> | ||
<View {...p} className="elevation bg-white rounded-xl flex flex-row p-3 items-center"> | ||
<SearchIcon className="w-5 h-5"></SearchIcon> | ||
<Text className="ml-2 text-xs">{p.search}</Text> | ||
</View> | ||
</TouchableOpacity> | ||
|
||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.