-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(tangle-dapp): Add missing table columns
- Loading branch information
1 parent
081cdbb
commit af6a02e
Showing
7 changed files
with
77 additions
and
74 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { Typography } from '@webb-tools/webb-ui-components'; | ||
import { FC } from 'react'; | ||
|
||
import { EMPTY_VALUE_PLACEHOLDER } from '../../constants'; | ||
|
||
export type PercentageCellProps = { | ||
percentage?: number; | ||
}; | ||
|
||
const PercentageCell: FC<PercentageCellProps> = ({ percentage }) => { | ||
if (percentage === undefined) { | ||
return EMPTY_VALUE_PLACEHOLDER; | ||
} | ||
|
||
return ( | ||
<Typography | ||
variant="body2" | ||
fw="normal" | ||
className="text-mono-200 dark:text-mono-0" | ||
> | ||
{`${percentage.toFixed(2)}%`} | ||
</Typography> | ||
); | ||
}; | ||
|
||
export default PercentageCell; |
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
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