From d0fe1beee071730b7e21cbbb654310fd17f7fdbf Mon Sep 17 00:00:00 2001 From: Gregory Schier Date: Wed, 2 Oct 2024 10:00:58 -0700 Subject: [PATCH] Fix lint errors --- src-web/components/TemplateFunctionDialog.tsx | 2 +- src-web/hooks/Prompt.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src-web/components/TemplateFunctionDialog.tsx b/src-web/components/TemplateFunctionDialog.tsx index 9b40010e..263e40fa 100644 --- a/src-web/components/TemplateFunctionDialog.tsx +++ b/src-web/components/TemplateFunctionDialog.tsx @@ -218,7 +218,7 @@ function SelectArg({ value={value} options={[ ...arg.options.map((a) => ({ - label: a.name + (arg.defaultValue === a.value ? ' (default)' : ''), + label: a.label + (arg.defaultValue === a.value ? ' (default)' : ''), value: a.value === arg.defaultValue ? NULL_ARG : a.value, })), ]} diff --git a/src-web/hooks/Prompt.tsx b/src-web/hooks/Prompt.tsx index e72e7566..5ce95b78 100644 --- a/src-web/hooks/Prompt.tsx +++ b/src-web/hooks/Prompt.tsx @@ -1,11 +1,11 @@ -import type { ShowPromptRequest } from '@yaakapp-internal/plugin'; +import type { PromptTextRequest } from '@yaakapp-internal/plugin'; import type { FormEvent, ReactNode } from 'react'; import { useCallback, useState } from 'react'; import { Button } from '../components/core/Button'; import { PlainInput } from '../components/core/PlainInput'; import { HStack } from '../components/core/Stacks'; -export type PromptProps = Omit & { +export type PromptProps = Omit & { description?: ReactNode; onHide: () => void; onResult: (value: string | null) => void;