Skip to content

Commit

Permalink
refactor: update
Browse files Browse the repository at this point in the history
  • Loading branch information
pyphilia committed Jul 1, 2024
1 parent 25e9aa6 commit df99ef5
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 154 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"@emotion/styled": "11.11.5",
"@graasp/chatbox": "3.1.0",
"@graasp/map": "1.16.0",
"@graasp/query-client": "3.14.0",
"@graasp/query-client": "3.15.0",
"@graasp/sdk": "4.15.1",
"@graasp/translations": "1.31.0",
"@graasp/ui": "github:graasp/graasp-ui#dnd-table-1",
Expand Down
3 changes: 2 additions & 1 deletion src/components/file/FileUploader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ const FileUploader = ({
onDrop([...e.target.files]);
}
}}
loading={isLoading && Math.ceil(totalProgress * 100)}
isLoading={isLoading}
uploadProgress={Math.ceil(totalProgress * 100)}
multiple
onDrop={onDrop}
error={error}
Expand Down
5 changes: 2 additions & 3 deletions src/components/item/FolderContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,12 @@ const FolderContent = ({ item }: { item: PackedItem }): JSX.Element => {
</Stack>
</Stack>
<FolderDescription itemId={item.id} />
{mode === ItemLayoutMode.Map && (
{mode === ItemLayoutMode.Map ? (
<>
<ModeButton />
<DesktopMap parentId={item.id} />
</>
)}
{mode !== ItemLayoutMode.Map && (
) : (
<>
<Stack
alignItems="space-between"
Expand Down
144 changes: 0 additions & 144 deletions src/components/main/ItemCard.tsx

This file was deleted.

10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1536,9 +1536,9 @@ __metadata:
languageName: node
linkType: hard

"@graasp/query-client@npm:3.14.0":
version: 3.14.0
resolution: "@graasp/query-client@npm:3.14.0"
"@graasp/query-client@npm:3.15.0":
version: 3.15.0
resolution: "@graasp/query-client@npm:3.15.0"
dependencies:
"@tanstack/react-query": "npm:4.36.1"
"@tanstack/react-query-devtools": "npm:4.36.1"
Expand All @@ -1549,7 +1549,7 @@ __metadata:
"@graasp/sdk": ^4.0.0
"@graasp/translations": "*"
react: ^18.0.0
checksum: 10/2d47d8de6092572ccc525e54b6d78a7d34095e1da6e44de60a126e13c48b604040e24a372f858583f1cc30a0387992474d3dbb917bead4423cd14df98b26e556
checksum: 10/4a1c2a745dc924a6857f55e29ecc533593e8335ba9c6daadf46ceb81f88d060c98b62f4d06f41e212e3dab865ac7b752c6d2fc9a2e3b4f8502c6cbf8b3249b76
languageName: node
linkType: hard

Expand Down Expand Up @@ -7545,7 +7545,7 @@ __metadata:
"@emotion/styled": "npm:11.11.5"
"@graasp/chatbox": "npm:3.1.0"
"@graasp/map": "npm:1.16.0"
"@graasp/query-client": "npm:3.14.0"
"@graasp/query-client": "npm:3.15.0"
"@graasp/sdk": "npm:4.15.1"
"@graasp/translations": "npm:1.31.0"
"@graasp/ui": "github:graasp/graasp-ui#dnd-table-1"
Expand Down

0 comments on commit df99ef5

Please sign in to comment.