-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { View, Text } from 'react-native'; | ||
Check notice Code scanning / CodeQL Unused variable, import, function or class Note
Unused import Text.
|
||
import React from 'react'; | ||
import { Button } from '@/components/button'; | ||
import { useAuthStore } from '@/hooks/use-auth'; | ||
|
||
const Profile = () => { | ||
const { signOut } = useAuthStore(); | ||
|
||
const handleSignOut = async () => { | ||
signOut(); | ||
}; | ||
|
||
return ( | ||
<View className='items-center justify-center flex-1 gap-5'> | ||
<Button onPress={handleSignOut}>Sign Out</Button> | ||
</View> | ||
); | ||
} | ||
|
||
export default Profile; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { View, Text } from 'react-native' | ||
import React from 'react' | ||
|
||
const Search = () => { | ||
return ( | ||
<View> | ||
<Text>Search</Text> | ||
</View> | ||
) | ||
} | ||
|
||
export default Search |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,113 @@ | ||
import React from 'react'; | ||
|
||
import { Stack } from 'expo-router'; | ||
import { MenuView } from '@react-native-menu/menu'; | ||
import { LeftArrow } from '@/components/left-arrow'; | ||
import { MaterialCommunityIcons } from '@expo/vector-icons'; | ||
import { View, Platform, StatusBar } from 'react-native'; | ||
Check notice Code scanning / CodeQL Unused variable, import, function or class Note
Unused import StatusBar.
|
||
|
||
const Layout = () => { | ||
return <Stack />; | ||
return ( | ||
<Stack> | ||
<Stack.Screen name="(tabs)" options={{ headerShown: false }} /> | ||
<Stack.Screen | ||
name="event/[id]" | ||
options={{ | ||
animationTypeForReplace: 'push', | ||
animation: 'slide_from_right', | ||
headerShown: true, | ||
headerTitleStyle: { | ||
color: 'white' | ||
}, | ||
headerBackground: () => ( | ||
Check warning on line 22 in frontend/sac-mobile/app/(app)/_layout.tsx GitHub Actions / Lint
Check warning on line 22 in frontend/sac-mobile/app/(app)/_layout.tsx GitHub Actions / Lint
|
||
<View className="h-full bg-gray-600" /> | ||
), | ||
headerLeft: () => <LeftArrow />, | ||
Check warning on line 25 in frontend/sac-mobile/app/(app)/_layout.tsx GitHub Actions / Lint
Check warning on line 25 in frontend/sac-mobile/app/(app)/_layout.tsx GitHub Actions / Lint
|
||
headerRight: () => { | ||
Check warning on line 26 in frontend/sac-mobile/app/(app)/_layout.tsx GitHub Actions / Lint
Check warning on line 26 in frontend/sac-mobile/app/(app)/_layout.tsx GitHub Actions / Lint
|
||
return ( | ||
<MenuView | ||
onPressAction={({ nativeEvent }) => { | ||
console.warn(JSON.stringify(nativeEvent)); | ||
}} | ||
actions={[ | ||
{ | ||
id: 'share', | ||
title: 'Share Event', | ||
image: Platform.select({ | ||
ios: 'square.and.arrow.up', | ||
android: 'share-variant' | ||
}) | ||
}, | ||
{ | ||
id: 'report', | ||
title: 'Report Event', | ||
image: Platform.select({ | ||
ios: 'person.crop.circle.badge.exclamationmark.fill', | ||
android: 'person-circle-outline' | ||
}) | ||
} | ||
]} | ||
> | ||
<MaterialCommunityIcons | ||
name="dots-vertical" | ||
size={24} | ||
color="white" | ||
/> | ||
</MenuView> | ||
); | ||
} | ||
}} | ||
/> | ||
<Stack.Screen | ||
name="club" | ||
options={{ | ||
animationTypeForReplace: 'push', | ||
animation: 'slide_from_right', | ||
headerShown: true, | ||
headerTitleStyle: { | ||
color: 'white' | ||
}, | ||
headerBackground: () => ( | ||
Check warning on line 70 in frontend/sac-mobile/app/(app)/_layout.tsx GitHub Actions / Lint
Check warning on line 70 in frontend/sac-mobile/app/(app)/_layout.tsx GitHub Actions / Lint
|
||
<View className="h-full bg-gray-600" /> | ||
), | ||
headerLeft: () => <LeftArrow />, | ||
Check warning on line 73 in frontend/sac-mobile/app/(app)/_layout.tsx GitHub Actions / Lint
Check warning on line 73 in frontend/sac-mobile/app/(app)/_layout.tsx GitHub Actions / Lint
|
||
headerRight: () => { | ||
Check warning on line 74 in frontend/sac-mobile/app/(app)/_layout.tsx GitHub Actions / Lint
Check warning on line 74 in frontend/sac-mobile/app/(app)/_layout.tsx GitHub Actions / Lint
|
||
return ( | ||
<MenuView | ||
onPressAction={({ nativeEvent }) => { | ||
console.warn(JSON.stringify(nativeEvent)); | ||
}} | ||
actions={[ | ||
{ | ||
id: 'share', | ||
title: 'Share Club', | ||
image: Platform.select({ | ||
ios: 'square.and.arrow.up', | ||
android: 'share-variant' | ||
}) | ||
}, | ||
{ | ||
id: 'report', | ||
title: 'Report Club', | ||
image: Platform.select({ | ||
ios: 'person.crop.circle.badge.exclamationmark.fill', | ||
android: 'person-circle-outline' | ||
}) | ||
} | ||
]} | ||
> | ||
<MaterialCommunityIcons | ||
name="dots-vertical" | ||
size={24} | ||
color="white" | ||
/> | ||
</MenuView> | ||
); | ||
} | ||
}} | ||
/> | ||
</Stack> | ||
); | ||
}; | ||
|
||
export default Layout; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { View, Text, SafeAreaView } from 'react-native' | ||
Check notice Code scanning / CodeQL Unused variable, import, function or class Note
Unused import View.
|
||
import React from 'react' | ||
import { Link, Stack, useLocalSearchParams } from 'expo-router'; | ||
|
||
const ClubPage = () => { | ||
const { id } = useLocalSearchParams<{ id: string }>(); | ||
|
||
return ( | ||
<SafeAreaView> | ||
<Stack.Screen | ||
options={{ title: `${id}` }} | ||
/> | ||
<Text>ClubPage</Text> | ||
<Link href={{ pathname: `/club/faq/${id}` }}> | ||
<Text>FAQ</Text> | ||
</Link> | ||
</SafeAreaView> | ||
) | ||
} | ||
|
||
export default ClubPage |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { View, Text } from 'react-native' | ||
Check notice Code scanning / CodeQL Unused variable, import, function or class Note
Unused imports Text, View.
|
||
import React from 'react' | ||
import { Stack } from 'expo-router' | ||
|
||
const Layout = () => { | ||
return ( | ||
<Stack> | ||
<Stack.Screen name="[id]" options={{ headerShown: false }} /> | ||
<Stack.Screen name="faq/[id]" options={{ headerShown: false, presentation: 'modal' }} /> | ||
|
||
</Stack> | ||
) | ||
} | ||
|
||
export default Layout |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { View, Text, SafeAreaView } from 'react-native' | ||
Check notice Code scanning / CodeQL Unused variable, import, function or class Note
Unused import View.
|
||
import React from 'react' | ||
import { useLocalSearchParams } from 'expo-router'; | ||
|
||
const Faq = () => { | ||
const { id } = useLocalSearchParams<{ id: string }>(); | ||
|
||
return ( | ||
<SafeAreaView className='items-center justify-center flex-1 bg-white'> | ||
<Text>{id}</ Text> | ||
</SafeAreaView> | ||
) | ||
} | ||
|
||
export default Faq |