react-garden
Version:
React + TypeScript + ThreeJS app using Material UI on NextJS, Apollo Client, GraphQL + WordPress REST APIs, for ThreeD web development.. a part of the threed.ai code family.
111 lines (102 loc) • 4.24 kB
JavaScript
// ** MUI Imports
import Card from '@mui/material/Card'
import Table from '@mui/material/Table'
import Button from '@mui/material/Button'
import Divider from '@mui/material/Divider'
import TableRow from '@mui/material/TableRow'
import Checkbox from '@mui/material/Checkbox'
import TableHead from '@mui/material/TableHead'
import TableBody from '@mui/material/TableBody'
import TableCell from '@mui/material/TableCell'
import CardHeader from '@mui/material/CardHeader'
import Typography from '@mui/material/Typography'
import CardContent from '@mui/material/CardContent'
import CardActions from '@mui/material/CardActions'
import TableContainer from '@mui/material/TableContainer'
const UserViewNotification = () => {
return (
<Card>
<CardHeader title='Notifications' titleTypographyProps={{ variant: 'h6' }} />
<Divider sx={{ m: 0 }} />
<CardContent>
<Typography sx={{ fontWeight: 500, fontSize: '0.875rem' }}>
You will receive notification for the below selected items.
</Typography>
</CardContent>
<Divider sx={{ m: 0 }} />
<TableContainer>
<Table sx={{ minWidth: 500 }}>
<TableHead
sx={{ backgroundColor: theme => (theme.palette.mode === 'light' ? 'grey.50' : 'background.default') }}
>
<TableRow>
<TableCell>Type</TableCell>
<TableCell align='center'>Email</TableCell>
<TableCell align='center'>Browser</TableCell>
<TableCell align='center'>App</TableCell>
</TableRow>
</TableHead>
<TableBody>
<TableRow hover>
<TableCell>New for you</TableCell>
<TableCell align='center' sx={{ pt: '0 !important', pb: '0 !important' }}>
<Checkbox defaultChecked />
</TableCell>
<TableCell align='center' sx={{ pt: '0 !important', pb: '0 !important' }}>
<Checkbox />
</TableCell>
<TableCell align='center' sx={{ pt: '0 !important', pb: '0 !important' }}>
<Checkbox />
</TableCell>
</TableRow>
<TableRow hover>
<TableCell>Account activity</TableCell>
<TableCell align='center' sx={{ pt: '0 !important', pb: '0 !important' }}>
<Checkbox />
</TableCell>
<TableCell align='center' sx={{ pt: '0 !important', pb: '0 !important' }}>
<Checkbox defaultChecked />
</TableCell>
<TableCell align='center' sx={{ pt: '0 !important', pb: '0 !important' }}>
<Checkbox defaultChecked />
</TableCell>
</TableRow>
<TableRow hover>
<TableCell>A new browser used to sign in</TableCell>
<TableCell align='center' sx={{ pt: '0 !important', pb: '0 !important' }}>
<Checkbox defaultChecked />
</TableCell>
<TableCell align='center' sx={{ pt: '0 !important', pb: '0 !important' }}>
<Checkbox defaultChecked />
</TableCell>
<TableCell align='center' sx={{ pt: '0 !important', pb: '0 !important' }}>
<Checkbox defaultChecked />
</TableCell>
</TableRow>
<TableRow hover>
<TableCell>A new device is linked</TableCell>
<TableCell align='center' sx={{ pt: '0 !important', pb: '0 !important' }}>
<Checkbox />
</TableCell>
<TableCell align='center' sx={{ pt: '0 !important', pb: '0 !important' }}>
<Checkbox defaultChecked />
</TableCell>
<TableCell align='center' sx={{ pt: '0 !important', pb: '0 !important' }}>
<Checkbox />
</TableCell>
</TableRow>
</TableBody>
</Table>
</TableContainer>
<CardActions>
<Button variant='contained' sx={{ mr: 3 }}>
Save Changes
</Button>
<Button color='secondary' variant='outlined'>
Discard
</Button>
</CardActions>
</Card>
)
}
export default UserViewNotification