1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 12:56:41 +07:00

(nextjs) fixed eslint warnings

This commit is contained in:
Fedor Katurov 2022-01-19 12:03:54 +07:00
parent c469722a86
commit e5f8d5a551
29 changed files with 56 additions and 59 deletions

View file

@ -32,20 +32,18 @@ const Grid: FC<IProps> = ({
[styles.horizontal]: horizontal,
[styles.vertical]: !horizontal,
[styles.square]: square,
[styles.stretchy]: stretchy
[styles.stretchy]: stretchy,
})}
style={{
...style,
gridTemplateColumns: square
? `repeat(auto-fill, ${(columns !== 'auto' && columns) || size})`
: columns,
gridTemplateRows: square
? `repeat(auto-fill, ${(rows !== 'auto' && rows) || size})`
: rows,
gridTemplateRows: square ? `repeat(auto-fill, ${(rows !== 'auto' && rows) || size})` : rows,
gridAutoRows: rows,
gridAutoColumns: columns,
gridRowGap: gap,
gridColumnGap: gap
gridColumnGap: gap,
}}
{...props}
>

View file

@ -31,7 +31,7 @@ const Group: FC<IProps> = ({
[styles.wrap]: wrap,
[styles.seamless]: seamless,
},
className,
className
)}
{...props}
>

View file

@ -6,15 +6,9 @@ import classNames from 'classnames';
type IProps = HTMLAttributes<HTMLDivElement> & {
seamless?: boolean;
stretchy?: boolean;
}
};
const Panel: FC<IProps> = ({
className,
children,
seamless,
stretchy,
...props
}) => (
const Panel: FC<IProps> = ({ className, children, seamless, stretchy, ...props }) => (
<div className={classNames(styles.panel, className, { seamless, stretchy })} {...props}>
{children}
</div>