diff --git a/src/components/Welcomes/Banner.tsx b/src/components/Welcomes/Banner.tsx
index 8431b2999fbf..1b491e314d3c 100644
--- a/src/components/Welcomes/Banner.tsx
+++ b/src/components/Welcomes/Banner.tsx
@@ -2,22 +2,22 @@ import * as React from 'react'
import CloseIcon from '@material-ui/icons/Close'
import { geti18nString } from '../../utils/i18n'
import { makeStyles } from '@material-ui/styles'
-import { AppBar, Toolbar, Typography, Button, IconButton, Box } from '@material-ui/core'
+import { AppBar, Typography, Button, IconButton, Hidden, SnackbarContent, Theme } from '@material-ui/core'
interface Props {
getStarted(): void
close(): void
disabled?: boolean
}
-const useStyles = makeStyles({
+const useStyles = makeStyles((theme: Theme) => ({
root: {
border: '1px solid #ccc',
borderRadius: 4,
marginBottom: 10,
},
- toolbar: {
- display: 'flex',
- paddingRight: 0,
+ snackbar: {
+ backgroundColor: theme.palette.background.default,
+ color: theme.palette.text.primary,
},
button: {
padding: '4px 3em',
@@ -26,32 +26,44 @@ const useStyles = makeStyles({
margin: 6,
padding: 6,
},
-})
+}))
export function Banner(props: Props) {
const classes = useStyles()
+ const Title = (
+
+ {props.disabled ? geti18nString('banner_collecting_identity') : geti18nString('banner_title')}
+
+ )
+ const GetStarted = (
+
+ )
+ const DismissIcon = (
+
+
+
+ )
return (
-
-
-
- {props.disabled ? geti18nString('banner_collecting_identity') : geti18nString('banner_title')}
-
-
-
-
-
-
-
+
+ {GetStarted}
+ {DismissIcon}
+ >
+ }
+ />
)
}
diff --git a/src/stories/Welcome.tsx b/src/stories/Welcome.tsx
index da804f9f9e81..a717fe0ac7c4 100644
--- a/src/stories/Welcome.tsx
+++ b/src/stories/Welcome.tsx
@@ -7,11 +7,13 @@ import Welcome1a4v2 from '../components/Welcomes/1a4.v2'
import Welcome1b1 from '../components/Welcomes/1b1'
import Welcome2 from '../components/Welcomes/2'
import { linkTo as to, linkTo } from '@storybook/addon-links'
-import { text } from '@storybook/addon-knobs'
+import { text, boolean } from '@storybook/addon-knobs'
import { action } from '@storybook/addon-actions'
import { Banner } from '../components/Welcomes/Banner'
storiesOf('Welcome', module)
- .add('Banner', () => )
+ .add('Banner', () => (
+
+ ))
.add('Step 0', () => (
))
diff --git a/src/utils/theme.ts b/src/utils/theme.ts
index 8b5b94cedced..a9a30e567418 100644
--- a/src/utils/theme.ts
+++ b/src/utils/theme.ts
@@ -30,11 +30,9 @@ const baseTheme = (theme: 'dark' | 'light') =>
MuiButton: {
root: {
textTransform: 'none',
- padding: _refTheme.spacing(1, 3),
},
outlined: {
background: theme === 'light' ? 'white' : _refThemeDark.palette.background.default,
- padding: _refTheme.spacing(1, 3),
},
},
MuiCard: {