Skip to content

Commit

Permalink
fix: update ui element
Browse files Browse the repository at this point in the history
  • Loading branch information
louisewang1 committed Mar 29, 2022
1 parent 5f4c0aa commit cc439bb
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"@graasp/chatbox": "github:graasp/graasp-chatbox.git",
"@graasp/query-client": "github:graasp/graasp-query-client.git",
"@graasp/translations": "github:graasp/graasp-translations.git",
"@graasp/ui": "github:graasp/graasp-ui.git#105/downloadButton",
"@graasp/ui": "github:graasp/graasp-ui.git",
"@graasp/utils": "github:graasp/graasp-utils.git",
"@material-ui/core": "4.12.3",
"@material-ui/icons": "5.0.0-beta.4",
Expand Down
1 change: 1 addition & 0 deletions src/components/main/Item.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ const Item = ({ item, memberships }) => {
<DownloadButton
handleDownload={handleDownload}
isLoading={isDownloading}
title={t('Download')}
/>
</>
)}
Expand Down
3 changes: 3 additions & 0 deletions src/components/table/ActionsCellRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { List } from 'immutable';
import React, { useEffect, useState } from 'react';
import { DownloadButton } from '@graasp/ui';
import { MUTATION_KEYS } from '@graasp/query-client';
import { useTranslation } from 'react-i18next';
import EditButton from '../common/EditButton';
import ItemMenu from '../main/ItemMenu';
import FavoriteButton from '../common/FavoriteButton';
Expand All @@ -16,6 +17,7 @@ import { useMutation } from '../../config/queryClient';

// items and memberships match by index
const ActionsCellRenderer = ({ memberships, items, member }) => {
const t = useTranslation();
const ChildComponent = ({ data: item }) => {
const [canEdit, setCanEdit] = useState(false);

Expand Down Expand Up @@ -78,6 +80,7 @@ const ActionsCellRenderer = ({ memberships, items, member }) => {
<DownloadButton
handleDownload={handleDownload}
isLoading={isDownloading}
title={t('Download')}
/>
</>
);
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1924,9 +1924,9 @@ __metadata:
languageName: node
linkType: hard

"@graasp/ui@github:graasp/graasp-ui.git#105/downloadButton":
"@graasp/ui@github:graasp/graasp-ui.git":
version: 0.2.0
resolution: "@graasp/ui@https://github.com/graasp/graasp-ui.git#commit=833577607913ed642c57bba03f0a01ec979f81b3"
resolution: "@graasp/ui@https://github.com/graasp/graasp-ui.git#commit=24d2a4becb962236a768b9fb8e9a42f78580aee1"
dependencies:
"@graasp/utils": "github:graasp/graasp-utils.git"
clsx: 1.1.1
Expand All @@ -1946,7 +1946,7 @@ __metadata:
i18next: 21.3.1
react: ^16.13.1
react-dom: 16.13.1
checksum: 91f18b4fb37abba4c9d605e02adeb72c9a9dc9f4f7f1a48a4f7a297789047ea8c59ea4fa88a9b15b915e687b9ba9bb8a26888114bc0cf75c6c9e60751fce28ef
checksum: 03db9261ae6a180410dd32d63189eeff8dc394f183290b2ce46aecf85bf382424384c70c729fda7a4a17d160a3ab1a6db7b506fb0f913d677871c004af272359
languageName: node
linkType: hard

Expand Down Expand Up @@ -9875,7 +9875,7 @@ __metadata:
"@graasp/chatbox": "github:graasp/graasp-chatbox.git"
"@graasp/query-client": "github:graasp/graasp-query-client.git"
"@graasp/translations": "github:graasp/graasp-translations.git"
"@graasp/ui": "github:graasp/graasp-ui.git#105/downloadButton"
"@graasp/ui": "github:graasp/graasp-ui.git"
"@graasp/utils": "github:graasp/graasp-utils.git"
"@graasp/websockets": "github:graasp/graasp-websockets.git#master"
"@material-ui/core": 4.12.3
Expand Down

0 comments on commit cc439bb

Please sign in to comment.