refactor: merge to single file

This commit is contained in:
lleohao
2024-09-07 14:07:05 +00:00
parent e44dbd0fa4
commit 1b0760f5af
85 changed files with 452 additions and 591 deletions

View File

@ -25,7 +25,7 @@ export default function PageImportModal({
open,
onClose,
}: PageImportModalProps) {
const { t } = useTranslation("page");
const { t } = useTranslation();
return (
<>
<Modal.Root
@ -57,7 +57,7 @@ interface ImportFormatSelection {
onClose: () => void;
}
function ImportFormatSelection({ spaceId, onClose }: ImportFormatSelection) {
const { t } = useTranslation("page");
const { t } = useTranslation();
const [treeData, setTreeData] = useAtom(treeDataAtom);
const handleFileUpload = async (selectedFiles: File[]) => {