forked from forbole/big-dipper-2.0-cosmos
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24 from CoreumFoundation/fix/explorer-bugs
Fix/explorer bugs
- Loading branch information
Showing
47 changed files
with
1,126 additions
and
26 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,18 @@ | ||
import useStyles from '@/components/loadingSpinner/styles'; | ||
import SpinnerSvg from './spinner.svg'; | ||
|
||
const Spinner = ({ custom_style = {} }) => { | ||
const { classes } = useStyles(); | ||
return ( | ||
<div className={classes.root} style={{ ...custom_style }}> | ||
<SpinnerSvg | ||
className={'spinner'} | ||
style={{ | ||
animation: 'spin 1s infinite linear', | ||
}} | ||
/> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Spinner; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,24 @@ | ||
import { makeStyles } from 'tss-react/mui'; | ||
|
||
const useStyles = makeStyles()((theme) => ({ | ||
root: { | ||
'@keyframes spin': { | ||
from: { | ||
transform: 'rotate(0deg)', | ||
}, | ||
to: { | ||
transform: 'rotate(360deg)', | ||
}, | ||
}, | ||
width: '100%', | ||
height: '100%', | ||
display: 'flex', | ||
alignItems: 'center', | ||
justifyContent: 'flex-end', | ||
'& .spinner': { | ||
scale: '0.8', | ||
}, | ||
}, | ||
})); | ||
|
||
export default useStyles; |
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,35 @@ | ||
import { FC } from 'react'; | ||
import { Typography } from '@mui/material'; | ||
import { Trans } from 'react-i18next'; | ||
import { MsgBurn } from '@/models'; | ||
import Name from '@/components/name'; | ||
import { useProfileRecoil } from '@/recoil/profiles'; | ||
import { formatNumber, formatToken } from '@/utils'; | ||
|
||
const Burn: FC<{ message: MsgBurn }> = (props) => { | ||
const { message } = props; | ||
|
||
const amount = formatToken(message.coin.amount, message.coin.denom); | ||
|
||
const parsedAmount = `${formatNumber( | ||
amount.value, | ||
amount.exponent | ||
)} ${amount.displayDenom.toUpperCase()}`; | ||
|
||
const sender = useProfileRecoil(message.sender); | ||
|
||
return ( | ||
<Typography> | ||
<Trans | ||
i18nKey="message_contents:msgBurnContent" | ||
components={[<Name address={message.sender} name={sender.name ?? message.sender} />, <b />]} | ||
values={{ | ||
sender: message.sender, | ||
amount: parsedAmount, | ||
}} | ||
/> | ||
</Typography> | ||
); | ||
}; | ||
|
||
export default Burn; |
Oops, something went wrong.