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
@@ -1,5 +1,6 @@
|
||||
import React from 'react';
|
||||
import Typography from '@material-ui/core/Typography';
|
||||
|
||||
import Text from '../../muiComponents/Text';
|
||||
|
||||
interface Props {
|
||||
text: string;
|
||||
@@ -7,9 +8,9 @@ interface Props {
|
||||
}
|
||||
|
||||
const NoItems: React.FC<Props> = ({ className, text }) => (
|
||||
<Typography className={className} gutterBottom={true} variant="subtitle1">
|
||||
<Text className={className} gutterBottom={true} variant="subtitle1">
|
||||
{text}
|
||||
</Typography>
|
||||
</Text>
|
||||
);
|
||||
|
||||
export default NoItems;
|
||||
|
||||
Reference in New Issue
Block a user