mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-21 08:21:19 +02:00
Fix lint errors
This commit is contained in:
@@ -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,
|
||||||
})),
|
})),
|
||||||
]}
|
]}
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user