bond table changes

This commit is contained in:
Gala
2022-12-15 14:18:01 +01:00
parent 63bfe4246f
commit 4995dde705
+10 -8
View File
@@ -1,13 +1,15 @@
import React from 'react';
import { Stack, Typography } from '@mui/material';
import { Stack, Typography, Tooltip } from '@mui/material';
import { CopyToClipboard } from '@nymproject/react/clipboard/CopyToClipboard';
import { splice } from 'src/utils';
export const IdentityKey = ({ identityKey }: { identityKey: string }) => (
<Stack direction="row">
<Typography variant="body2" component="span" fontWeight={400} sx={{ mr: 1, color: 'text.primary' }}>
{splice(6, identityKey)}
</Typography>
<CopyToClipboard value={identityKey} sx={{ fontSize: 18 }} />
</Stack>
export const IdentityKey = ({ identityKey, tooltipTitle }: { identityKey: string; tooltipTitle?: string }) => (
<Tooltip title={tooltipTitle || ''} placement="top" arrow>
<Stack direction="row" width="fit-content">
<Typography variant="body2" component="span" fontWeight={400} sx={{ mr: 1, color: 'text.primary' }}>
{splice(6, identityKey)}
</Typography>
<CopyToClipboard value={identityKey} sx={{ fontSize: 18 }} />
</Stack>
</Tooltip>
);