forked from sombochea/verdaccio-ui
fix: typography Component - Introduced ForwardRef (#179)
* refactor: introduced forwardref * refacttor: updated ref's * fix: fixed func's name * fix: fixed snapshots * fix: updated snap
This commit is contained in:
committed by
Juan Picado @jotadeveloper
parent
82d7107de7
commit
a8deeb9b9d
@@ -5,7 +5,7 @@ import { DetailContext } from '../../pages/Version';
|
||||
import fileSizeSI from '../../utils/file-size';
|
||||
import { formatLicense } from '../../utils/package';
|
||||
|
||||
import { Heading, DistListItem, DistChips } from './styles';
|
||||
import { StyledText, DistListItem, DistChips } from './styles';
|
||||
|
||||
const DistChip: FC<{ name: string }> = ({ name, children }) =>
|
||||
children ? (
|
||||
@@ -33,7 +33,7 @@ const Dist: FC = () => {
|
||||
const { dist, license } = packageMeta && packageMeta.latest;
|
||||
|
||||
return (
|
||||
<List subheader={<Heading variant="subtitle1">{'Latest Distribution'}</Heading>}>
|
||||
<List subheader={<StyledText variant="subtitle1">{'Latest Distribution'}</StyledText>}>
|
||||
<DistListItem button={true}>
|
||||
<DistChip name="file count">{dist.fileCount}</DistChip>
|
||||
<DistChip name="size">{dist.unpackedSize && fileSizeSI(dist.unpackedSize)}</DistChip>
|
||||
|
||||
Reference in New Issue
Block a user