Skip to content

Commit

Permalink
add version display support
Browse files Browse the repository at this point in the history
  • Loading branch information
vorujack committed Apr 8, 2024
1 parent 6422882 commit 78b36a3
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/action/multi-sig/signing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ export const sign = async (
};

export const arrayToProposition = (input: Array<string>): wasm.Propositions => {
const output = new wasm.Propositions()
input.forEach(pk => Uint8Array.from(Buffer.from('cd' + pk, 'hex')),)
return output
}
const output = new wasm.Propositions();
input.forEach((pk) => Uint8Array.from(Buffer.from('cd' + pk, 'hex')));
return output;
};
16 changes: 16 additions & 0 deletions src/pages/settings/AppVersion.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import MinotaurLogo from '@/components/splash/MinotaurLogo';
import { Box, Typography } from '@mui/material';
import { version } from '@/../package.json';

const AppVersion = () => {
return (
<Box mt={16} display="flex" flexDirection="column" alignItems="center">
<MinotaurLogo style={{ width: 64, marginBottom: -8 }} />
<Typography variant="body2" textAlign="center">
Minotaur {version}
</Typography>
</Box>
);
};

export default AppVersion;
2 changes: 2 additions & 0 deletions src/pages/settings/Settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import DangerousSettings from './DangerousSettings';
import { StateWallet } from '@/store/reducer/wallet';
import GlobalSettings from './GlobalSettings';
import BackButtonRouter from '@/components/back-button/BackButtonRouter';
import AppVersion from './AppVersion';

interface WalletSettingsPropsType {
wallet?: StateWallet;
Expand All @@ -15,6 +16,7 @@ const WalletSettings = (props: WalletSettingsPropsType) => {
{props.wallet ? <LocalSettings wallet={props.wallet} /> : undefined}
<GlobalSettings />
{props.wallet ? <DangerousSettings wallet={props.wallet} /> : undefined}
<AppVersion />
</AppFrame>
);
};
Expand Down

0 comments on commit 78b36a3

Please sign in to comment.