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:
parent
0b77e87778
commit
b44266437d
5 changed files with 88 additions and 40 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue