-
Notifications
You must be signed in to change notification settings - Fork 155
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
style: add new txLink + remove markets from
profile
- Loading branch information
tche
authored and
tche
committed
Dec 26, 2024
1 parent
85f9589
commit d4ad4a4
Showing
5 changed files
with
122 additions
and
58 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
66 changes: 66 additions & 0 deletions
66
src/components/Berachain/components/BerachainWidget/TxConfirmation.tsx
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,66 @@ | ||
import { alpha, Box, Typography, useTheme } from '@mui/material'; | ||
import CheckIcon from '@mui/icons-material/Check'; | ||
import OpenInNewIcon from '@mui/icons-material/OpenInNew'; | ||
|
||
export const TxConfirmation = ({ s, link }: { s: string; link: string }) => { | ||
const theme = useTheme(); | ||
|
||
return ( | ||
<Box | ||
sx={{ | ||
width: '100%', | ||
display: 'flex', | ||
flexDirection: 'row', | ||
alignItems: 'center', | ||
borderRadius: '16px', | ||
justifyContent: 'space-between', | ||
backgroundColor: 'inherit', | ||
padding: theme.spacing(2), | ||
marginTop: theme.spacing(2), | ||
border: `1px solid ${alpha(theme.palette.white.main, 0.08)}`, | ||
gap: '8px', | ||
}} | ||
> | ||
<Box | ||
sx={{ | ||
display: 'flex', | ||
flexDirection: 'row', | ||
gap: '16px', | ||
alignItems: 'center', | ||
}} | ||
> | ||
<Box | ||
sx={{ | ||
backgroundColor: '#291812', | ||
borderRadius: '50%', | ||
flexDirection: 'row', | ||
alignItems: 'center', | ||
}} | ||
> | ||
<CheckIcon sx={{ color: '#FF8425', width: '16px', height: '16px' }} /> | ||
</Box> | ||
<Typography>{s}</Typography> | ||
</Box> | ||
<a | ||
href={link} | ||
target="_blank" | ||
style={{ | ||
textDecoration: 'none', | ||
color: 'inherit', | ||
}} | ||
rel="noreferrer" | ||
> | ||
<Box | ||
sx={{ | ||
backgroundColor: alpha(theme.palette.white.main, 0.08), | ||
borderRadius: '50%', | ||
flexDirection: 'row', | ||
alignItems: 'center', | ||
}} | ||
> | ||
<OpenInNewIcon sx={{ width: '16px', height: '16px' }} /> | ||
</Box> | ||
</a> | ||
</Box> | ||
); | ||
}; |
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
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