Skip to content

Commit

Permalink
frontend(feat): show hash in tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
NicoSerranoP committed Jul 13, 2023
1 parent dad8da7 commit 8067dc5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/frontend/src/components/CircuitsTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
} from '../styles'
//import './styles.css';
import { Circuit, State } from '../types/ceremony'
import { Button } from '@mui/material'
import { Tooltip, Button } from '@mui/material'
import styled from 'styled-components'
import { CopyToClipboard } from 'react-copy-to-clipboard'
import ViewLog from './ViewLog'
Expand Down Expand Up @@ -103,7 +103,11 @@ const renderRow = (
let content = <></>
if (hash && hash?.length > 0) {
const hashBlockie = () => (
<Blockies seed={hash} size={10} scale={4} className="identicon" />
<Tooltip title={hash}>
<div>
<Blockies seed={hash} size={10} scale={4} className="identicon" />
</div>
</Tooltip>
)
content = (
<CopyToClipboard text={hash}>
Expand Down

0 comments on commit 8067dc5

Please sign in to comment.