Skip to content

Commit 0e710ed

Browse files
committed
fix: dir & file component interfaces
1 parent 5e87abb commit 0e710ed

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/features/dashboard/sandbox/inspect/dir.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@ import { cn } from '@/lib/utils'
66
import { Loader } from '@/ui/loader'
77
import { DataTableRow } from '@/ui/data-table'
88
import { motion } from 'motion/react'
9+
import { FileType } from 'e2b'
910

1011
interface SandboxInspectDirProps {
1112
dir: FilesystemNode & {
12-
type: 'dir'
13+
type: FileType.DIR
1314
}
1415
}
1516

src/features/dashboard/sandbox/inspect/file.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { DataTableRow } from '@/ui/data-table'
44

55
interface SandboxInspectFileProps {
66
file: FilesystemNode & {
7-
type: 'file'
7+
type: FileType.FILE
88
}
99
}
1010

0 commit comments

Comments
 (0)