mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-22 03:33:06 +08:00
fix: build lint error
This commit is contained in:
@@ -4,6 +4,7 @@ import { Button } from '@/ui/button';
|
|||||||
import { useState } from 'react';
|
import { useState } from 'react';
|
||||||
import Input from '@/ui/input';
|
import Input from '@/ui/input';
|
||||||
import { useTemporaryHelper } from '@/providers/temporary-helper-provider';
|
import { useTemporaryHelper } from '@/providers/temporary-helper-provider';
|
||||||
|
import { KeyboardEvent } from 'react';
|
||||||
interface ICloseParams {
|
interface ICloseParams {
|
||||||
workspaceId?: string;
|
workspaceId?: string;
|
||||||
}
|
}
|
||||||
@@ -20,7 +21,7 @@ export const CreateWorkspaceModal = ({ open, onClose }: ModalProps) => {
|
|||||||
onClose({ workspaceId: workspace.id });
|
onClose({ workspaceId: workspace.id });
|
||||||
setActiveWorkspace(workspace);
|
setActiveWorkspace(workspace);
|
||||||
};
|
};
|
||||||
const handleKeyDown = (event: KeyboardEvent) => {
|
const handleKeyDown = (event: KeyboardEvent<HTMLInputElement>) => {
|
||||||
if (event.key === 'Enter') {
|
if (event.key === 'Enter') {
|
||||||
// 👇 Get input value
|
// 👇 Get input value
|
||||||
handleCreateWorkspace();
|
handleCreateWorkspace();
|
||||||
|
|||||||
Reference in New Issue
Block a user