21720: changed theme.sspacing.unit Arvados-DCO-1.1-Signed-off-by: Lisa Knox <lisa...
[arvados.git] / services / workbench2 / src / views-components / token-dialog / token-dialog.tsx
index ad1093d7e58ecf881eca34c5c7c75097840732a9..83867ef43fd88f24a18afac0eca8feb834bc5a47 100644 (file)
@@ -39,8 +39,8 @@ const styles: StyleRulesCallback<CssRules> = (theme: ArvadosTheme) => ({
         margin: '0px 4px'
     },
     paper: {
-        padding: theme.spacing.unit,
-        marginBottom: theme.spacing.unit * 2,
+        padding: theme.spacing,
+        marginBottom: theme.spacing(2),
         backgroundColor: theme.palette.grey["200"],
         border: `1px solid ${theme.palette.grey["300"]}`
     },
@@ -50,9 +50,9 @@ const styles: StyleRulesCallback<CssRules> = (theme: ArvadosTheme) => ({
     },
     actionButton: {
         boxShadow: 'none',
-        marginTop: theme.spacing.unit * 2,
-        marginBottom: theme.spacing.unit * 2,
-        marginRight: theme.spacing.unit * 2,
+        marginTop: theme.spacing(2),
+        marginBottom: theme.spacing(2),
+        marginRight: theme.spacing(2),
     },
     codeBlock: {
         fontSize: '0.8125rem',