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
@@ -7,7 +7,7 @@ import { VersionPageConsumerProps, DetailContextConsumer } from '../../pages/Ver
|
||||
import Avatar from '../../muiComponents/Avatar';
|
||||
import npm from '../Install/img/npm.svg';
|
||||
|
||||
import { Heading, EngineListItem } from './styles';
|
||||
import { StyledText, EngineListItem } from './styles';
|
||||
// @ts-ignore
|
||||
import node from './img/node.png';
|
||||
|
||||
@@ -60,7 +60,7 @@ class Engine extends Component {
|
||||
|
||||
private renderListItems = (heading: string, text: string) => {
|
||||
return (
|
||||
<List subheader={<Heading variant={'subtitle1'}>{text.split('-').join(' ')}</Heading>}>
|
||||
<List subheader={<StyledText variant={'subtitle1'}>{text.split('-').join(' ')}</StyledText>}>
|
||||
<EngineListItem button={true}>
|
||||
{ICONS[text]}
|
||||
<ListItemText primary={heading} />
|
||||
|
||||
Reference in New Issue
Block a user