Skip to content

Commit

Permalink
add "experimental" badge to header
Browse files Browse the repository at this point in the history
  • Loading branch information
jfschwarz committed Jan 3, 2024
1 parent 1496adb commit 84fac82
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"typescript.tsdk": "node_modules/typescript/lib",
"typescript.enablePromptUseWorkspaceTsdk": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
"source.fixAll.eslint": "explicit"
}
}
16 changes: 15 additions & 1 deletion packages/app/src/components/views/Header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ const useStyles = makeStyles((theme) => ({
grow: {
flexGrow: 1,
},
badge: {
marginLeft: theme.spacing(2),
},
warning: {
color: theme.palette.warning.main,
textTransform: "uppercase",
},
}))

export const Header = () => {
Expand All @@ -40,7 +47,14 @@ export const Header = () => {
Roles
</Typography>
</HeaderBox>
<HeaderBox className={classes.grow} />
<HeaderBox className={classes.grow}>
<div className={classes.badge}>
<Typography className={classes.warning}>Experimental</Typography>
<Typography variant="body2">
Use this app with caution and carefully review all applied permissions
</Typography>
</div>
</HeaderBox>
<ChainPicker />
<HeaderAddressBox address={module} emptyText="No Safe Attached" />
<ConnectWalletBox />
Expand Down

0 comments on commit 84fac82

Please sign in to comment.