Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: change usage of edit current member hook #704

Merged
merged 1 commit into from
Oct 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"@emotion/react": "11.13.0",
"@emotion/server": "11.11.0",
"@emotion/styled": "11.13.0",
"@graasp/query-client": "3.26.0",
"@graasp/query-client": "4.0.2",
"@graasp/sdk": "4.31.0",
"@graasp/stylis-plugin-rtl": "2.2.0",
"@graasp/translations": "1.35.0",
Expand Down
3 changes: 1 addition & 2 deletions src/components/collection/ItemBreadcrumb.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ const ItemBreadcrumb = ({
const { data: item } = hooks.useItem(itemId);

const { data: allParents, isLoading: isLoadingParents } = hooks.useParents({
id: item?.id,
path: item?.path,
id: itemId,
});
const { data: publishedInformation, isLoading: isLoadingInformation } =
hooks.useItemPublishedInformation({
Expand Down
3 changes: 1 addition & 2 deletions src/components/layout/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const usePreferredLanguage = (): {
const { i18n } = useLibraryTranslation();
const { hooks, mutations } = useContext(QueryClientContext);
const { data: member } = hooks.useCurrentMember();
const { mutate: editMember } = mutations.useEditMember();
const { mutate: editMember } = mutations.useEditCurrentMember();
const [language, setLanguage] = useState(i18n.language);

useEffect(() => {
Expand All @@ -44,7 +44,6 @@ const usePreferredLanguage = (): {
// on signed in: change user language
if (member?.id) {
editMember({
id: member.id,
extra: { lang: newLang },
});
}
Expand Down
54 changes: 27 additions & 27 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1273,19 +1273,19 @@ __metadata:
languageName: node
linkType: hard

"@graasp/query-client@npm:3.26.0":
version: 3.26.0
resolution: "@graasp/query-client@npm:3.26.0"
"@graasp/query-client@npm:4.0.2":
version: 4.0.2
resolution: "@graasp/query-client@npm:4.0.2"
dependencies:
"@tanstack/react-query": "npm:5.52.0"
"@tanstack/react-query-devtools": "npm:5.52.0"
"@tanstack/react-query": "npm:5.59.8"
"@tanstack/react-query-devtools": "npm:5.59.8"
axios: "npm:1.7.7"
http-status-codes: "npm:2.3.0"
peerDependencies:
"@graasp/sdk": ^4.0.0
"@graasp/translations": "*"
react: ^18.0.0
checksum: 10/80e18fdfaa2ac9e34d3c3893d0fb476c6a05004c5b0ee3a4a0dbdfb5736a1aa3a4213ca7a4c50a372faf514c0331a62196c421be21aabdb5061e4d21bc2058a4
checksum: 10/333f4856725d59e128581d104037997a397f7f6ddf09ffaab7a3ff8a8e1fb716b870b2a97dda600e45c5e3a63395ca1df5796755dabfdcaf465a5a793d5d459e
languageName: node
linkType: hard

Expand Down Expand Up @@ -2754,40 +2754,40 @@ __metadata:
languageName: node
linkType: hard

"@tanstack/query-core@npm:5.52.0":
version: 5.52.0
resolution: "@tanstack/query-core@npm:5.52.0"
checksum: 10/cd21e87ad7a0bbb262dea21704352eb1bbaafc26776ae1602b4be9a2d0d1f16a89cc4b5951f69083e26f970d75386431240d5a573ed9bce5a37ba2dc862e376a
"@tanstack/query-core@npm:5.59.6":
version: 5.59.6
resolution: "@tanstack/query-core@npm:5.59.6"
checksum: 10/4cd634f957175dde80ed8f2b47eb14803d959073b6dccb7868f5dd6ddce26e41820b2dfc879dfc799de0726ae640201440c7d1d95113813bbcb25b03ec05949e
languageName: node
linkType: hard

"@tanstack/query-devtools@npm:5.51.16":
version: 5.51.16
resolution: "@tanstack/query-devtools@npm:5.51.16"
checksum: 10/b0e8c1f86890a515d4ddbab4743387aecd882271f7be2cbc36f69d05ba42b803ae2e9bbfd53a03450ca4827c94f6b5d7d6fa5e013bfabe6ee0aa9a7b34a223d3
"@tanstack/query-devtools@npm:5.58.0":
version: 5.58.0
resolution: "@tanstack/query-devtools@npm:5.58.0"
checksum: 10/ca16c47c943ea392dfddc301f7e09ecdb0c8b905fb684b8f26b908a244e2e897679efb0ead5fa8e728711017341fdd91d8c51ebb19f746819e26ade5549f539e
languageName: node
linkType: hard

"@tanstack/react-query-devtools@npm:5.52.0":
version: 5.52.0
resolution: "@tanstack/react-query-devtools@npm:5.52.0"
"@tanstack/react-query-devtools@npm:5.59.8":
version: 5.59.8
resolution: "@tanstack/react-query-devtools@npm:5.59.8"
dependencies:
"@tanstack/query-devtools": "npm:5.51.16"
"@tanstack/query-devtools": "npm:5.58.0"
peerDependencies:
"@tanstack/react-query": ^5.52.0
"@tanstack/react-query": ^5.59.8
react: ^18 || ^19
checksum: 10/67fff9fe45a54e6823800bd15de5d5712b65bda9bb567907765481025775817b03c56925add47dd51fe19de1135b57b290570e5cb00b5a071ca3f7d409c39805
checksum: 10/1e84af45cd6c722b296aef39ac2e7c98ef0db8c963bc43ebd802adc7077d514d06189862b02351e85878616542877af64266965147d75470cf834a23a9ee07ea
languageName: node
linkType: hard

"@tanstack/react-query@npm:5.52.0":
version: 5.52.0
resolution: "@tanstack/react-query@npm:5.52.0"
"@tanstack/react-query@npm:5.59.8":
version: 5.59.8
resolution: "@tanstack/react-query@npm:5.59.8"
dependencies:
"@tanstack/query-core": "npm:5.52.0"
"@tanstack/query-core": "npm:5.59.6"
peerDependencies:
react: ^18.0.0
checksum: 10/6976d309d306f0dd70f25e0de820812c47bfc39b654294e1512d4bb5320d0abad1bc3d6de16a25b7ae6766eb9b928c5e396e996d7d6689d33a1c1436de68cf7b
react: ^18 || ^19
checksum: 10/246cfa18e991782c97631ab30fc95987be81c7a25b057b65c3530a06f9e8acc98475ce8def29486be8d4c8f9ad391b9cfa2195b89e11dcd82f43a4ca172154f6
languageName: node
linkType: hard

Expand Down Expand Up @@ -7277,7 +7277,7 @@ __metadata:
"@emotion/react": "npm:11.13.0"
"@emotion/server": "npm:11.11.0"
"@emotion/styled": "npm:11.13.0"
"@graasp/query-client": "npm:3.26.0"
"@graasp/query-client": "npm:4.0.2"
"@graasp/sdk": "npm:4.31.0"
"@graasp/stylis-plugin-rtl": "npm:2.2.0"
"@graasp/translations": "npm:1.35.0"
Expand Down