Map - remove unused import | add width and height 100% to TabLink

This commit is contained in:
Dawid Wysokiński 2020-12-24 18:07:07 +01:00
parent 2fd0b5cc5d
commit 89e445339b
2 changed files with 6 additions and 3 deletions

View File

@ -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>
);
}

View File

@ -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';