-
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.
Merge pull request #58 from COS301-SE-2024/feat/mobile-frontend/booking
Booking functionality frontend
- Loading branch information
Showing
58 changed files
with
3,262 additions
and
3,015 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
export { useColorScheme } from 'react-native'; |
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 |
---|---|---|
@@ -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'; | ||
} |
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 |
---|---|---|
@@ -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]; | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
32 changes: 0 additions & 32 deletions
32
frontend/occupi-mobile3/__tests__/Dashboard_Test/Bookings.test.js
This file was deleted.
Oops, something went wrong.
30 changes: 0 additions & 30 deletions
30
frontend/occupi-mobile3/__tests__/Dashboard_Test/Dashboard.test.js
This file was deleted.
Oops, something went wrong.
120 changes: 0 additions & 120 deletions
120
frontend/occupi-mobile3/__tests__/Login_Test/CreatePassword.test.js
This file was deleted.
Oops, something went wrong.
69 changes: 0 additions & 69 deletions
69
frontend/occupi-mobile3/__tests__/Login_Test/ForgotPassword.test.js
This file was deleted.
Oops, something went wrong.
58 changes: 0 additions & 58 deletions
58
frontend/occupi-mobile3/__tests__/Login_Test/Onboarding1.test.js
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.