Map - remove unused import | add width and height 100% to TabLink
This commit is contained in:
parent
2fd0b5cc5d
commit
89e445339b
|
@ -7,10 +7,14 @@ export interface Props extends TabProps {
|
|||
linkProps: LinkProps;
|
||||
}
|
||||
|
||||
function TabLink({ linkProps = { to: '' }, ...props }: Props) {
|
||||
function TabLink({ linkProps = { to: '' }, style = {}, ...props }: Props) {
|
||||
return (
|
||||
<Link {...linkProps}>
|
||||
<Tab disableTouchRipple {...props} />
|
||||
<Tab
|
||||
disableTouchRipple
|
||||
style={{ width: '100%', height: '100%', ...style }}
|
||||
{...props}
|
||||
/>
|
||||
</Link>
|
||||
);
|
||||
}
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
import React, { memo, useState, useEffect } from 'react';
|
||||
|
||||
import { makeStyles } from '@material-ui/core/styles';
|
||||
import { Link } from '@material-ui/core';
|
||||
import { Alert } from '@material-ui/lab';
|
||||
import Spinner from '@common/Spinner/Spinner';
|
||||
|
||||
|
|
Reference in New Issue
Block a user