feat: add identity and feed management (#272)
* feat(wip): add basic feed operations * ci: bump checks * ci: bump checks * feat: rework stamps and add feed functionalities * refactor: polish and fixes * feat(wip): add formulas * feat: show bzz.link for websites * feat: add stamp empty states and formatBzz * feat: add feed download * chore: update manifest-js version * feat: dev mode support with bee-js 3.1.0 (#273) * feat: dev mode support with bee-js 3.1.0 * fix: added missing package-lock.json file * build: remove PR preview * style: work on design * feat: add TroubleshootConnectionCard * build: remove depcheck Co-authored-by: Attila Gazso <agazso@gmail.com>
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
import { createStyles, Grid, makeStyles, Typography } from '@material-ui/core'
|
||||
import { ReactElement } from 'react'
|
||||
import { CloseButton } from './CloseButton'
|
||||
|
||||
interface Props {
|
||||
children: string
|
||||
onClose: () => void
|
||||
}
|
||||
|
||||
const useStyles = makeStyles(() =>
|
||||
createStyles({
|
||||
text: {
|
||||
color: '#606060',
|
||||
fontWeight: 'bold',
|
||||
},
|
||||
}),
|
||||
)
|
||||
|
||||
export function TitleWithClose({ children, onClose }: Props): ReactElement {
|
||||
const classes = useStyles()
|
||||
|
||||
return (
|
||||
<Grid container justifyContent="space-between" alignItems="center">
|
||||
<span> </span>
|
||||
<Typography className={classes.text} align="center">
|
||||
{children}
|
||||
</Typography>
|
||||
<CloseButton onClose={onClose} />
|
||||
</Grid>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user