This repository has been archived by the owner on Nov 21, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add changes for mobile register
- Loading branch information
Showing
7 changed files
with
122 additions
and
1,117 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
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
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,56 @@ | ||
import { Link } from 'react-router-dom'; | ||
|
||
import { Android, Apple, DeviceUnknown } from '@mui/icons-material'; | ||
import { Button, Stack, Typography } from '@mui/material'; | ||
|
||
import { HOME_PATH } from '../config/paths'; | ||
import FullscreenContainer from './FullscreenContainer'; | ||
|
||
const MobileAuth = (): JSX.Element => { | ||
return ( | ||
<FullscreenContainer> | ||
<Stack | ||
justifyContent="center" | ||
alignItems="center" | ||
direction="column" | ||
spacing={2} | ||
> | ||
<DeviceUnknown fontSize="large" color="primary" /> | ||
<Typography> | ||
It looks like you requested a mobile link but you do not have our app | ||
installed on this device. | ||
</Typography> | ||
<Button component={Link} to={''} variant="contained"> | ||
<Stack | ||
direction="column" | ||
alignItems="center" | ||
justifyContent="center" | ||
px={1} | ||
py={{ xs: 1, sm: 2 }} | ||
textTransform="none" | ||
> | ||
<Apple /> | ||
<Typography>Get from the Apple App Store</Typography> | ||
</Stack> | ||
</Button> | ||
<Button component={Link} to={''} variant="contained"> | ||
<Stack | ||
direction="column" | ||
alignItems="center" | ||
justifyContent="center" | ||
px={1} | ||
py={{ xs: 1, sm: 2 }} | ||
textTransform="none" | ||
> | ||
<Android /> | ||
<Typography>Get from the Google Play Store</Typography> | ||
</Stack> | ||
</Button> | ||
<Typography component={Link} to={HOME_PATH} variant="caption"> | ||
Go back Home | ||
</Typography> | ||
</Stack> | ||
</FullscreenContainer> | ||
); | ||
}; | ||
export default MobileAuth; |
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
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
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 |
---|---|---|
@@ -1,7 +1,4 @@ | ||
import qs from 'qs'; | ||
|
||
export const buildSignInPath = (to?: string) => | ||
`/signin${qs.stringify({ to }, { addQueryPrefix: true })}`; | ||
export const SIGN_IN_PATH = '/signin'; | ||
export const SIGN_UP_PATH = '/signup'; | ||
export const HOME_PATH = '/'; | ||
export const SIGN_IN_PATH = '/signin'; | ||
export const MOBILE_AUTH_PATH = '/auth'; |
Oops, something went wrong.