build gang in mui

This commit is contained in:
Olivier Gagnon
2021-10-01 15:39:56 -04:00
parent 9cbb525da3
commit 5ba7b2796d
33 changed files with 50 additions and 96 deletions
+2 -1
View File
@@ -4,6 +4,7 @@ import Tooltip from "@mui/material/Tooltip";
type IProps = {
value: string;
color?: string;
variant?:
| "button"
| "caption"
@@ -39,7 +40,7 @@ export function CopyableText(props: IProps): React.ReactElement {
return (
<Tooltip open={open} title={<Typography>Copied!</Typography>}>
<Typography variant={props.variant} onClick={copy}>
<Typography variant={props.variant} color={props.color} onClick={copy}>
{props.value}
</Typography>
</Tooltip>