mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(ui): fix type issues
This commit is contained in:
parent
ed43472582
commit
2bd1ab2f1c
@ -16,7 +16,7 @@ type Props = {
|
|||||||
|
|
||||||
const WorkflowField = ({ nodeId, fieldName }: Props) => {
|
const WorkflowField = ({ nodeId, fieldName }: Props) => {
|
||||||
const label = useFieldLabel(nodeId, fieldName);
|
const label = useFieldLabel(nodeId, fieldName);
|
||||||
const fieldTemplateTitle = useFieldTemplateTitle(nodeId, fieldName, 'input');
|
const fieldTemplateTitle = useFieldTemplateTitle(nodeId, fieldName, 'inputs');
|
||||||
const { isValueChanged, onReset } = useFieldOriginalValue(nodeId, fieldName);
|
const { isValueChanged, onReset } = useFieldOriginalValue(nodeId, fieldName);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@ -36,7 +36,7 @@ const WorkflowField = ({ nodeId, fieldName }: Props) => {
|
|||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
<Tooltip
|
<Tooltip
|
||||||
label={<FieldTooltipContent nodeId={nodeId} fieldName={fieldName} kind="input" />}
|
label={<FieldTooltipContent nodeId={nodeId} fieldName={fieldName} kind="inputs" />}
|
||||||
openDelay={HANDLE_TOOLTIP_OPEN_DELAY}
|
openDelay={HANDLE_TOOLTIP_OPEN_DELAY}
|
||||||
placement="top"
|
placement="top"
|
||||||
>
|
>
|
||||||
|
@ -284,13 +284,13 @@ describe('refObjectToSchemaName', async () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
describe.concurrent('parseFieldType', async () => {
|
describe.concurrent('parseFieldType', async () => {
|
||||||
it.each(primitiveTypes)('parses primitive types ($name)', ({ schema, expected }) => {
|
it.each(primitiveTypes)('parses primitive types ($name)', ({ schema, expected }: ParseFieldTypeTestCase) => {
|
||||||
expect(parseFieldType(schema)).toEqual(expected);
|
expect(parseFieldType(schema)).toEqual(expected);
|
||||||
});
|
});
|
||||||
it.each(complexTypes)('parses complex types ($name)', ({ schema, expected }) => {
|
it.each(complexTypes)('parses complex types ($name)', ({ schema, expected }: ParseFieldTypeTestCase) => {
|
||||||
expect(parseFieldType(schema)).toEqual(expected);
|
expect(parseFieldType(schema)).toEqual(expected);
|
||||||
});
|
});
|
||||||
it.each(specialCases)('parses special case types ($name)', ({ schema, expected }) => {
|
it.each(specialCases)('parses special case types ($name)', ({ schema, expected }: ParseFieldTypeTestCase) => {
|
||||||
expect(parseFieldType(schema)).toEqual(expected);
|
expect(parseFieldType(schema)).toEqual(expected);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user