-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…te-Member-Encouragement #2794 Component with button to encourage memberst to go to teams
- Loading branch information
Showing
2 changed files
with
50 additions
and
0 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
48 changes: 48 additions & 0 deletions
48
src/frontend/src/pages/HomePage/components/MemberEncouragement.tsx
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,48 @@ | ||
import React from 'react'; | ||
import { Box, Alert, Typography, Grid } from '@mui/material'; | ||
import { routes } from '../../../utils/routes'; | ||
import { NERButton } from '../../../components/NERButton'; | ||
import { useHistory } from 'react-router-dom'; | ||
|
||
const MemberEncouragement: React.FC = () => { | ||
const history = useHistory(); | ||
return ( | ||
<Box sx={{ width: '100%', my: 2, mx: 'auto' }}> | ||
<Alert | ||
variant="filled" | ||
severity="info" | ||
icon={false} | ||
sx={{ | ||
'& .MuiAlert-message': { | ||
width: '100%' | ||
} | ||
}} | ||
> | ||
<Grid container alignItems="center" justifyContent="space-between"> | ||
<Grid item> | ||
<Typography variant="h6" color="white"> | ||
Already a member? | ||
</Typography> | ||
<Typography variant="body2" color="white"> | ||
Talk to the head of your team to become a member and get added to the team on FinishLine! | ||
</Typography> | ||
</Grid> | ||
<Grid item> | ||
<NERButton | ||
variant="contained" | ||
size="small" | ||
sx={{ color: 'white' }} | ||
onClick={() => { | ||
history.push(routes.TEAMS); | ||
}} | ||
> | ||
See Teams > | ||
</NERButton> | ||
</Grid> | ||
</Grid> | ||
</Alert> | ||
</Box> | ||
); | ||
}; | ||
|
||
export default MemberEncouragement; |