mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
chore(ui): lint
This commit is contained in:
parent
f9b8b5cff2
commit
1f194e3688
@ -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;
|
||||
};
|
||||
|
@ -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"
|
||||
|
@ -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 (
|
||||
|
@ -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 = {
|
||||
|
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user