1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-26 05:16:41 +07:00

better sidepane

This commit is contained in:
muerwre 2019-07-26 14:00:53 +07:00
parent 1b001db91a
commit e315b33284
19 changed files with 253 additions and 99 deletions

View file

@ -7,6 +7,7 @@ interface IProps {
width?: number;
title?: string;
is_hero?: boolean;
is_stamp?: boolean;
}
const Cell: FC<IProps> = ({
@ -14,6 +15,7 @@ const Cell: FC<IProps> = ({
height = 1,
title,
is_hero,
is_stamp,
}) => (
<div
className={classNames(styles.cell, { is_hero })}

View file

@ -1,5 +1,6 @@
import * as React from 'react';
import { Cell } from "~/components/flow/Cell";
import { range } from 'ramda';
const style = require('./style.scss');
@ -11,13 +12,14 @@ export const TestGrid = () => (
title="Example cell Example cell Example cell Example cell Example cell Example cell Example cell "
is_hero
/>
<Cell />
<Cell
height={2}
title="Example cell Example cell Example cell Example cell Example cell Example cell Example cell "
/>
<Cell width={2} />
<Cell />
{
range(1,20).map(el => (
<Cell
width={1}
height={1}
title="Example cell Example cell Example cell Example cell Example cell Example cell Example cell "
/>
))
}
</div>
);