chore(ui): lint

This commit is contained in:
psychedelicious 2023-08-16 22:36:03 +10:00
parent f9b8b5cff2
commit 1f194e3688
5 changed files with 6 additions and 9 deletions

View File

@ -14,9 +14,6 @@ import { fieldBooleanValueChanged } from 'features/nodes/store/nodesSlice';
import { DRAG_HANDLE_CLASSNAME } from 'features/nodes/types/constants';
import { ChangeEvent, memo, useCallback } from 'react';
export const IMAGE_FIELDS = ['ImageField', 'ImageCollection'];
export const FOOTER_FIELDS = IMAGE_FIELDS;
type Props = {
nodeId: string;
};

View File

@ -14,7 +14,7 @@ type Props = {
selected: boolean;
};
const NodeHeader = ({ nodeId, isOpen, label, type, selected }: Props) => {
const NodeHeader = ({ nodeId, isOpen }: Props) => {
return (
<Flex
layerStyle="nodeHeader"

View File

@ -84,7 +84,7 @@ const TooltipContent = memo(({ nodeId }: { nodeId: string }) => {
const nodeTemplate = useNodeTemplate(nodeId);
if (!isInvocationNodeData(data)) {
return 'Unknown Node';
return <Text sx={{ fontWeight: 600 }}>Unknown Node</Text>;
}
return (

View File

@ -4,10 +4,7 @@ import { useAppSelector } from 'app/store/storeHooks';
import { defaultSelectorOptions } from 'app/store/util/defaultMemoizeOptions';
import { map, some } from 'lodash-es';
import { useMemo } from 'react';
import {
FOOTER_FIELDS,
IMAGE_FIELDS,
} from '../components/Invocation/NodeFooter';
import { FOOTER_FIELDS, IMAGE_FIELDS } from '../types/constants';
import { isInvocationNode } from '../types/types';
const KIND_MAP = {

View File

@ -6,6 +6,9 @@ export const NODE_WIDTH = 320;
export const NODE_MIN_WIDTH = 320;
export const DRAG_HANDLE_CLASSNAME = 'node-drag-handle';
export const IMAGE_FIELDS = ['ImageField', 'ImageCollection'];
export const FOOTER_FIELDS = IMAGE_FIELDS;
export const COLLECTION_TYPES: FieldType[] = [
'Collection',
'IntegerCollection',