Skip to content

Commit

Permalink
Merge pull request #58 from COS301-SE-2024/feat/mobile-frontend/booking
Browse files Browse the repository at this point in the history
Booking functionality frontend
  • Loading branch information
KamogeloMoeketse authored Jun 15, 2024
2 parents ac4f794 + dd62f30 commit 9127814
Show file tree
Hide file tree
Showing 58 changed files with 3,262 additions and 3,015 deletions.
1 change: 1 addition & 0 deletions frontend/occupi-mobile/hooks/useColorScheme.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { useColorScheme } from 'react-native';
8 changes: 8 additions & 0 deletions frontend/occupi-mobile/hooks/useColorScheme.web.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// NOTE: The default React Native styling doesn't support server rendering.
// Server rendered styles should not change between the first render of the HTML
// and the first render on the client. Typically, web developers will use CSS media queries
// to render different styles on the client and server, these aren't directly supported in React Native
// but can be achieved using a styling library like Nativewind.
export function useColorScheme() {
return 'light';
}
22 changes: 22 additions & 0 deletions frontend/occupi-mobile/hooks/useThemeColor.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/**
* Learn more about light and dark modes:
* https://docs.expo.dev/guides/color-schemes/
*/

import { useColorScheme } from 'react-native';

import { Colors } from '@/constants/Colors';

export function useThemeColor(
props: { light?: string; dark?: string },
colorName: keyof typeof Colors.light & keyof typeof Colors.dark
) {
const theme = useColorScheme() ?? 'light';
const colorFromProps = props[theme];

if (colorFromProps) {
return colorFromProps;
} else {
return Colors[theme][colorName];
}
}
3 changes: 0 additions & 3 deletions frontend/occupi-mobile3/.babelrc

This file was deleted.

32 changes: 0 additions & 32 deletions frontend/occupi-mobile3/__tests__/Dashboard_Test/Bookings.test.js

This file was deleted.

30 changes: 0 additions & 30 deletions frontend/occupi-mobile3/__tests__/Dashboard_Test/Dashboard.test.js

This file was deleted.

120 changes: 0 additions & 120 deletions frontend/occupi-mobile3/__tests__/Login_Test/CreatePassword.test.js

This file was deleted.

This file was deleted.

58 changes: 0 additions & 58 deletions frontend/occupi-mobile3/__tests__/Login_Test/Onboarding1.test.js

This file was deleted.

Loading

0 comments on commit 9127814

Please sign in to comment.