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:
parent
606c88d777
commit
ef71e55543
23 changed files with 108 additions and 109 deletions
26
src/components/flow/Cell/index.tsx
Normal file
26
src/components/flow/Cell/index.tsx
Normal 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 };
|
Loading…
Add table
Add a link
Reference in a new issue