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

refactored node page

This commit is contained in:
Fedor Katurov 2021-11-06 20:32:00 +07:00
parent 0b77e87778
commit b44266437d
5 changed files with 88 additions and 40 deletions

View file

@ -8,13 +8,13 @@ import styles from './styles.module.scss';
import { getURLFromString } from '~/utils/dom';
import { canEditNode } from '~/utils/node';
type IProps = {
interface Props {
nodes: IFlowNode[];
user: Partial<IUser>;
onChangeCellView: (id: INode['id'], flow: FlowDisplay) => void;
};
}
export const FlowGrid: FC<IProps> = ({ user, nodes, onChangeCellView }) => {
export const FlowGrid: FC<Props> = ({ user, nodes, onChangeCellView }) => {
if (!nodes) {
return null;
}