mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 04:46:40 +07:00
add eslint-plugin-prettier
This commit is contained in:
parent
0e4d2bf44d
commit
ba0604ab9d
69 changed files with 419 additions and 249 deletions
|
@ -6,11 +6,12 @@ export const useFlowCellControls = (
|
|||
id: INode['id'],
|
||||
description: string | undefined,
|
||||
flow: FlowDisplay,
|
||||
onChangeCellView: (id: INode['id'], flow: FlowDisplay) => void
|
||||
onChangeCellView: (id: INode['id'], flow: FlowDisplay) => void,
|
||||
) => {
|
||||
const onChange = useCallback(
|
||||
(value: Partial<FlowDisplay>) => onChangeCellView(id, { ...flow, ...value }),
|
||||
[flow, id, onChangeCellView]
|
||||
(value: Partial<FlowDisplay>) =>
|
||||
onChangeCellView(id, { ...flow, ...value }),
|
||||
[flow, id, onChangeCellView],
|
||||
);
|
||||
|
||||
const hasDescription = !!description && description.length > 32;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue