Fix lint errors

This commit is contained in:
Gregory Schier
2024-10-02 10:00:58 -07:00
parent e401e8f1cf
commit d0fe1beee0
2 changed files with 3 additions and 3 deletions

View File

@@ -218,7 +218,7 @@ function SelectArg({
value={value} value={value}
options={[ options={[
...arg.options.map((a) => ({ ...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, value: a.value === arg.defaultValue ? NULL_ARG : a.value,
})), })),
]} ]}

View File

@@ -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 type { FormEvent, ReactNode } from 'react';
import { useCallback, useState } from 'react'; import { useCallback, useState } from 'react';
import { Button } from '../components/core/Button'; import { Button } from '../components/core/Button';
import { PlainInput } from '../components/core/PlainInput'; import { PlainInput } from '../components/core/PlainInput';
import { HStack } from '../components/core/Stacks'; import { HStack } from '../components/core/Stacks';
export type PromptProps = Omit<ShowPromptRequest, 'id' | 'title' | 'description'> & { export type PromptProps = Omit<PromptTextRequest, 'id' | 'title' | 'description'> & {
description?: ReactNode; description?: ReactNode;
onHide: () => void; onHide: () => void;
onResult: (value: string | null) => void; onResult: (value: string | null) => void;