Skip to content

Commit

Permalink
feat: add version to settings modal
Browse files Browse the repository at this point in the history
  • Loading branch information
akhlopiachyi committed Jan 19, 2024
1 parent f9b9358 commit a18b9ef
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 6 deletions.
2 changes: 1 addition & 1 deletion apps/web-coreum/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "web-coreum",
"version": "2.19.3-77",
"version": "2.19.3-78",
"license": "Apache-2.0",
"private": true,
"scripts": {
Expand Down
6 changes: 4 additions & 2 deletions apps/web-coreum/src/chain.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@
"table_headers": "#6C6F78",
"data_blocks": "#25D695",
"staking_tab": "#5E6773",
"active_tab": "#FFFFFF"
"active_tab": "#FFFFFF",
"settings_label_version": "#5E6773"
},
"primaryData": {
"one": "#F87255",
Expand Down Expand Up @@ -153,7 +154,8 @@
"highlight": "#F1C34E",
"table_headers": "#A5A8B2",
"staking_tab": "#A5A8B2",
"active_tab": "#1B1D23"
"active_tab": "#1B1D23",
"settings_label_version": "#C3C3C3"
},
"primaryData": {
"one": "#F87255",
Expand Down
1 change: 1 addition & 0 deletions packages/ui/createPalette.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ declare module '@mui/material/styles/createPalette' {
data_blocks: string;
staking_tab: string;
active_tab: string;
settings_label_version: string;
};
primaryData: {
one: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ const Settings: FC<ComponentDefault> = (props) => {
txListFormat,
handleClose,
} = useSettingList();
const currentVersion = process.env.NEXT_PUBLIC_VERSION;

return (
<div>
Expand Down Expand Up @@ -134,6 +135,7 @@ const Settings: FC<ComponentDefault> = (props) => {
))}
</Select>
</div>
<Typography className={classes.version}>Version: {currentVersion}</Typography>
</DialogContent>
<div />
</Dialog>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,13 @@ const useStyles = makeStyles()((theme) => ({
},
},
version: {
color: theme.palette.custom.fonts.fontFour,
color: theme.palette.custom.fonts.settings_label_version,
display: 'flex',
alignItems: 'start',
justifyContent: 'center',
// marginLeft: theme.spacing(1),
fontSize: theme.spacing(1.5),
marginTop: theme.spacing(1),
marginBottom: theme.spacing(0.5),
},
}));

Expand Down
3 changes: 2 additions & 1 deletion turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"NEXT_PUBLIC_GRAPHQL_WS",
"NEXT_PUBLIC_MATOMO_SITE_ID",
"NEXT_PUBLIC_MATOMO_URL",
"NEXT_PUBLIC_RPC_WEBSOCKET"
"NEXT_PUBLIC_RPC_WEBSOCKET",
"NEXT_PUBLIC_VERSION"
]
},
"clean": {
Expand Down

0 comments on commit a18b9ef

Please sign in to comment.