Skip to content

Commit

Permalink
askjdkasjd
Browse files Browse the repository at this point in the history
  • Loading branch information
Alder Whiteford authored and Alder Whiteford committed Jun 18, 2024
1 parent 08f5271 commit 5679c35
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 29 deletions.
2 changes: 1 addition & 1 deletion frontend/mobile/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"expo": {
"name": "sac-mobile",
"slug": "student-activity-calendar",
"version": "1.0.3",
"version": "1.0.4",
"orientation": "portrait",
"icon": "./src/assets/images/icon.png",
"scheme": "myapp",
Expand Down
2 changes: 1 addition & 1 deletion frontend/mobile/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"@fortawesome/free-solid-svg-icons": "^6.5.2",
"@fortawesome/react-fontawesome": "^0.2.2",
"@fortawesome/react-native-fontawesome": "^0.3.2",
"@generatesac/lib": "0.0.179",
"@generatesac/lib": "0.0.180",
"@gorhom/bottom-sheet": "^4.6.3",
"@hookform/resolvers": "^3.4.2",
"@react-native-async-storage/async-storage": "^1.23.1",
Expand Down
17 changes: 0 additions & 17 deletions frontend/mobile/src/app/auth/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,23 +57,6 @@ const WelcomePage = () => {
'Continue with Outlook'
)}
</Button>
<Button
variant="standardButton"
color="darkRed"
onPress={() => router.navigate('/auth/callback')}
>
{isLoading ? (
<Image
source={Loading}
style={{
width: 15,
height: 15
}}
/>
) : (
'View Callback'
)}
</Button>
</Box>
</GlobalLayout>
</SafeAreaView>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,15 @@ function convertNumToTime(num: number) {
let meridiem = num === 23 ? 'AM' : 'PM';
let minutes = num % 100;

if (num !== 0 && (num < 1000 || num > 2359)) {
if (num !== 0 && (num < 0 || num > 2359)) {
throw new Error('Invalid time');
}

time = time / 100;

if (num < 12) {
time += 12;
if (time < 12) {
meridiem = 'AM';
}
if (num > 12) {
if (time > 12) {
time -= 12;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const EventCardBig: React.FC<EventCardBigProps> = ({
return (
<Box>
<TouchableOpacity
onPress={() => router.navigate(`/event/${eventId}`)}
onPress={() => router.navigate(`/app/event/${eventId}`)}
>
<Box gap="xs">
<Image
Expand Down
8 changes: 4 additions & 4 deletions frontend/mobile/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1402,10 +1402,10 @@
humps "^2.0.1"
prop-types "^15.7.2"

"@generatesac/lib@0.0.179":
version "0.0.179"
resolved "https://registry.yarnpkg.com/@generatesac/lib/-/lib-0.0.179.tgz#48941b9f059bcfc5508291bfa86d2c1f7c03d3da"
integrity sha512-N44CToFq1EDAJKnulpvPRkAp8GmC5x/T4NVSx5jO1de3YAMJX7r9vg+99eLHDkhAc+jZPyEckAiQQCfpG+uEsA==
"@generatesac/lib@0.0.180":
version "0.0.180"
resolved "https://registry.yarnpkg.com/@generatesac/lib/-/lib-0.0.180.tgz#01a5866af05ccbd369e14faddb8acb2745b9fece"
integrity sha512-UxIBGebRwwHdNyX8CHMmMTbC6WwQMKbvzAtRGCZyMvkldasw+XdQ9+F+WzZyR6OF1Lp84VLJsF6UAIYLO1slVQ==
dependencies:
"@reduxjs/toolkit" "^2.2.3"
react "^18.2.0"
Expand Down

0 comments on commit 5679c35

Please sign in to comment.