-
Notifications
You must be signed in to change notification settings - Fork 473
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Show Proposal chip for unsigned transactions in the queue
- Loading branch information
1 parent
7e491e7
commit b7d8f3e
Showing
2 changed files
with
41 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import { Chip, SvgIcon, Tooltip, Typography } from '@mui/material' | ||
import InfoIcon from '@/public/images/notifications/info.svg' | ||
|
||
const TxProposalChip = () => { | ||
return ( | ||
<Tooltip title="This transaction was created by a Proposer. Reject or confirm it to proceed."> | ||
<span> | ||
<Chip | ||
sx={{ backgroundColor: 'background.main', color: 'primary.light' }} | ||
size="small" | ||
label={ | ||
<Typography | ||
variant="caption" | ||
fontWeight="bold" | ||
display="flex" | ||
alignItems="center" | ||
justifyContent="center" | ||
gap={0.7} | ||
> | ||
<SvgIcon component={InfoIcon} inheritViewBox fontSize="small" /> | ||
<Typography variant="caption" fontWeight="bold"> | ||
Proposal | ||
</Typography> | ||
</Typography> | ||
} | ||
/> | ||
</span> | ||
</Tooltip> | ||
) | ||
} | ||
|
||
export default TxProposalChip |