1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-05-04 09:06:40 +07:00

simple player controls

This commit is contained in:
Fedor Katurov 2019-10-13 18:43:42 +07:00
parent 3fcff3ea0d
commit 69ff9a7652
8 changed files with 128 additions and 25 deletions
src/components/containers/CellGrid

View file

@ -1,6 +1,4 @@
import React, {
FC, HTMLAttributes, ReactChild, ReactChildren
} from 'react';
import React, { FC, HTMLAttributes } from 'react';
import * as styles from './styles.scss';
import classNames = require('classnames');
@ -8,14 +6,9 @@ import classNames = require('classnames');
type IProps = HTMLAttributes<HTMLDivElement> & {
children: any;
size: number;
}
};
const CellGrid: FC<IProps> = ({
children,
size,
className,
...props
}) => (
const CellGrid: FC<IProps> = ({ children, size, className, ...props }) => (
<div
className={classNames(styles.grid, className)}
style={{ gridTemplateColumns: `repeat(auto-fit, minmax(${size}px, 1fr))` }}