Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

created notifications page #209

Merged
merged 1 commit into from
Jul 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions frontend/occupi-mobile4/app/_layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export default function RootLayout() {
<Stack.Screen name="home" options={{ headerShown: false }} />
<Stack.Screen name="bookings" options={{ headerShown: false }} />
<Stack.Screen name="viewbookings" options={{ headerShown: false }} />
<Stack.Screen name="notifications" options={{ headerShown: false }} />
<Stack.Screen name="onboarding1" options={{ headerShown: false }} />
<Stack.Screen name="onboarding2" options={{ headerShown: false }} />
<Stack.Screen name="onboarding3" options={{ headerShown: false }} />
Expand Down
7 changes: 7 additions & 0 deletions frontend/occupi-mobile4/app/notifications.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import Notifications from "../screens/Notifications/Notifications";

export default function Home() {
return (
<Notifications />
);
}
2 changes: 1 addition & 1 deletion frontend/occupi-mobile4/components/NavBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const NavBar = () => {
<Icon as={CalendarDaysIcon} w={hp('3%')} h={hp('3%')} color={colorScheme === 'dark' ? 'white' : 'black'} />
<Text numberOfLines={1} w={wp('7.4%')} fontSize={wp('3%')} color={colorScheme === 'dark' ? 'white' : 'black'}>Book</Text>
</Button>
<Button onPress={() => router.replace('/bookings')} flex={1} mt={hp('1%')} w={wp('20%')} backgroundColor="none" title="Notifications" flexDirection="column">
<Button onPress={() => router.replace('/notifications')} flex={1} mt={hp('1%')} w={wp('20%')} backgroundColor="none" title="Notifications" flexDirection="column">
<Icon as={BellIcon} w={hp('3%')} h={hp('3%')} color={colorScheme === 'dark' ? 'white' : 'black'} />
<Text pl={wp('1%')} numberOfLines={1} w={wp('20%')} fontSize={wp('3%')} color={colorScheme === 'dark' ? 'white' : 'black'}>Notifications</Text>
</Button>
Expand Down
32 changes: 32 additions & 0 deletions frontend/occupi-mobile4/screens/Notifications/Notifications.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import Navbar from '../../components/NavBar';
import {
Text,
View,
Image,

Check warning on line 5 in frontend/occupi-mobile4/screens/Notifications/Notifications.tsx

View workflow job for this annotation

GitHub Actions / lint

'Image' is defined but never used
Card,

Check warning on line 6 in frontend/occupi-mobile4/screens/Notifications/Notifications.tsx

View workflow job for this annotation

GitHub Actions / lint

'Card' is defined but never used
Toast,

Check warning on line 7 in frontend/occupi-mobile4/screens/Notifications/Notifications.tsx

View workflow job for this annotation

GitHub Actions / lint

'Toast' is defined but never used
useToast,

Check warning on line 8 in frontend/occupi-mobile4/screens/Notifications/Notifications.tsx

View workflow job for this annotation

GitHub Actions / lint

'useToast' is defined but never used
ToastTitle,

Check warning on line 9 in frontend/occupi-mobile4/screens/Notifications/Notifications.tsx

View workflow job for this annotation

GitHub Actions / lint

'ToastTitle' is defined but never used
Button,
ButtonText,
} from '@gluestack-ui/themed';
import { StatusBar, useColorScheme, Dimensions } from 'react-native';
import { Entypo } from '@expo/vector-icons';

const Notifications = () => {
const colorScheme = useColorScheme();
return (
<View pt="$20" px="$4" flex={1} flexDirection="column" backgroundColor={colorScheme === 'dark' ? '$black' : '$white'}>
<View flexDirection='row' justifyContent='space-between'>
<Text fontWeight="$bold" fontSize={28} color={colorScheme === 'dark' ? '$white' : '$black'}>Notifications</Text>
<View style={{ backgroundColor: '#ADFF2F', alignItems: 'center', padding: 8, borderRadius: 12 }}>
<Entypo name="sound-mix" size={26} color="black"style={{ transform: [{ rotate: '90deg' }] }}/>
</View>
</View>

<Navbar />
</View>
)
}

export default Notifications
Loading