-
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 #241 from invariant-labs/dev
Update staging
- Loading branch information
Showing
68 changed files
with
1,320 additions
and
1,060 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 |
---|---|---|
@@ -1,28 +1,32 @@ | ||
import { Grid, Typography } from '@mui/material' | ||
import empty from '@static/svg/empty.svg' | ||
import { Button, Grid, Typography } from '@mui/material' | ||
import classNames from 'classnames' | ||
import React from 'react' | ||
import { useStyles } from './style' | ||
import icons from '@static/icons' | ||
|
||
export interface IEmptyPlaceholder { | ||
desc: string | ||
onAction?: () => void | ||
className?: string | ||
style?: React.CSSProperties | ||
} | ||
|
||
export const EmptyPlaceholder: React.FC<IEmptyPlaceholder> = ({ desc, className, style }) => { | ||
export const EmptyPlaceholder: React.FC<IEmptyPlaceholder> = ({ desc, onAction }) => { | ||
const { classes } = useStyles() | ||
|
||
return ( | ||
<Grid | ||
container | ||
direction='column' | ||
alignItems='center' | ||
className={classNames(classes.wrapper, className)} | ||
style={style}> | ||
<img src={empty} className={classes.image} alt='empty' /> | ||
<Typography className={classes.title}>It's empty here...</Typography> | ||
<Typography className={classes.desc}>{desc}</Typography> | ||
</Grid> | ||
<> | ||
<Grid className={classNames(classes.blur, 'blurLayer')} /> | ||
<Grid className={classNames(classes.container, 'blurLayer')}> | ||
<Grid className={classNames(classes.root, 'blurInfo')}> | ||
<img className={classes.img} src={icons.empty} alt='Not connected' /> | ||
<Typography className={classes.desc}>It's empty here...</Typography> | ||
{desc?.length && <Typography className={classes.desc}>{desc}</Typography>} | ||
<Button className={classes.button} onClick={onAction} variant='contained'> | ||
Add a position | ||
</Button> | ||
</Grid> | ||
</Grid> | ||
</> | ||
) | ||
} |
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
Oops, something went wrong.