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

code cleanup

This commit is contained in:
muerwre 2019-07-23 19:00:48 +07:00
parent 606c88d777
commit ef71e55543
23 changed files with 108 additions and 109 deletions

View file

@ -0,0 +1,26 @@
import React, { FC } from 'react';
import * as styles from './styles.scss';
interface IProps {
height?: number;
width?: number;
title?: string;
}
const Cell: FC<IProps> = ({
width = 1,
height = 1,
title,
}) => (
<div
className={styles.cell}
style={{
gridRowEnd: `span ${height}`,
gridColumnEnd: `span ${width}`,
}}
>
{ title && <div className={styles.title}>{title}</div> }
</div>
);
export { Cell };