From 090890a94d27248bec71ec0a264e3c31ba210657 Mon Sep 17 00:00:00 2001 From: DiamondThree Date: Sun, 8 Jan 2023 19:37:15 +0800 Subject: [PATCH] fix: build lint error --- packages/app/src/components/create-workspace/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/app/src/components/create-workspace/index.tsx b/packages/app/src/components/create-workspace/index.tsx index 8f8ce49d1c..d2decdfe4e 100644 --- a/packages/app/src/components/create-workspace/index.tsx +++ b/packages/app/src/components/create-workspace/index.tsx @@ -4,6 +4,7 @@ import { Button } from '@/ui/button'; import { useState } from 'react'; import Input from '@/ui/input'; import { useTemporaryHelper } from '@/providers/temporary-helper-provider'; +import { KeyboardEvent } from 'react'; interface ICloseParams { workspaceId?: string; } @@ -20,7 +21,7 @@ export const CreateWorkspaceModal = ({ open, onClose }: ModalProps) => { onClose({ workspaceId: workspace.id }); setActiveWorkspace(workspace); }; - const handleKeyDown = (event: KeyboardEvent) => { + const handleKeyDown = (event: KeyboardEvent) => { if (event.key === 'Enter') { // 👇 Get input value handleCreateWorkspace();