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 { DRAG_HANDLE_CLASSNAME } from 'features/nodes/types/constants';
|
||||||
import { ChangeEvent, memo, useCallback } from 'react';
|
import { ChangeEvent, memo, useCallback } from 'react';
|
||||||
|
|
||||||
export const IMAGE_FIELDS = ['ImageField', 'ImageCollection'];
|
|
||||||
export const FOOTER_FIELDS = IMAGE_FIELDS;
|
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
nodeId: string;
|
nodeId: string;
|
||||||
};
|
};
|
||||||
|
@ -14,7 +14,7 @@ type Props = {
|
|||||||
selected: boolean;
|
selected: boolean;
|
||||||
};
|
};
|
||||||
|
|
||||||
const NodeHeader = ({ nodeId, isOpen, label, type, selected }: Props) => {
|
const NodeHeader = ({ nodeId, isOpen }: Props) => {
|
||||||
return (
|
return (
|
||||||
<Flex
|
<Flex
|
||||||
layerStyle="nodeHeader"
|
layerStyle="nodeHeader"
|
||||||
|
@ -84,7 +84,7 @@ const TooltipContent = memo(({ nodeId }: { nodeId: string }) => {
|
|||||||
const nodeTemplate = useNodeTemplate(nodeId);
|
const nodeTemplate = useNodeTemplate(nodeId);
|
||||||
|
|
||||||
if (!isInvocationNodeData(data)) {
|
if (!isInvocationNodeData(data)) {
|
||||||
return 'Unknown Node';
|
return <Text sx={{ fontWeight: 600 }}>Unknown Node</Text>;
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
@ -4,10 +4,7 @@ import { useAppSelector } from 'app/store/storeHooks';
|
|||||||
import { defaultSelectorOptions } from 'app/store/util/defaultMemoizeOptions';
|
import { defaultSelectorOptions } from 'app/store/util/defaultMemoizeOptions';
|
||||||
import { map, some } from 'lodash-es';
|
import { map, some } from 'lodash-es';
|
||||||
import { useMemo } from 'react';
|
import { useMemo } from 'react';
|
||||||
import {
|
import { FOOTER_FIELDS, IMAGE_FIELDS } from '../types/constants';
|
||||||
FOOTER_FIELDS,
|
|
||||||
IMAGE_FIELDS,
|
|
||||||
} from '../components/Invocation/NodeFooter';
|
|
||||||
import { isInvocationNode } from '../types/types';
|
import { isInvocationNode } from '../types/types';
|
||||||
|
|
||||||
const KIND_MAP = {
|
const KIND_MAP = {
|
||||||
|
@ -6,6 +6,9 @@ export const NODE_WIDTH = 320;
|
|||||||
export const NODE_MIN_WIDTH = 320;
|
export const NODE_MIN_WIDTH = 320;
|
||||||
export const DRAG_HANDLE_CLASSNAME = 'node-drag-handle';
|
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[] = [
|
export const COLLECTION_TYPES: FieldType[] = [
|
||||||
'Collection',
|
'Collection',
|
||||||
'IntegerCollection',
|
'IntegerCollection',
|
||||||
|
Loading…
Reference in New Issue
Block a user