Skip to content

Commit b0934bc

Browse files
malwilleyCompuIves
authored andcommitted
Refactor Entry component to use typescript (codesandbox#2787)
1 parent fc6518c commit b0934bc

File tree

6 files changed

+254
-247
lines changed

6 files changed

+254
-247
lines changed
-15.4 MB
Binary file not shown.

packages/app/src/app/components/ContextMenu/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ interface ItemType {
1515
action: () => boolean | void;
1616
}
1717

18-
type Item = ItemType | ItemType[];
18+
export type Item = ItemType | ItemType[];
1919

2020
type ChildrenProps =
2121
| {

packages/app/src/app/index.d.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
declare global {
2+
interface Window {
3+
__isTouch: boolean;
4+
}
5+
}
6+
7+
export {};

packages/app/src/app/pages/Sandbox/Editor/Workspace/Files/DirectoryEntry/Entry/EditIcons/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ const handleClick = func => e => {
1919
};
2020

2121
function EditIcons({
22-
className,
22+
className = undefined,
2323
hovering,
2424
onDelete,
2525
onEdit,
2626
onCreateFile,
2727
onCreateDirectory,
2828
active,
2929
onUploadFile,
30-
onDownload,
30+
onDownload = undefined,
3131
forceShow,
3232
}) {
3333
// Phones need double click if we show elements on click, that's why we only want

packages/app/src/app/pages/Sandbox/Editor/Workspace/Files/DirectoryEntry/Entry/index.js

Lines changed: 0 additions & 244 deletions
This file was deleted.

0 commit comments

Comments
 (0)