Skip to content

Commit

Permalink
fix(deps): update dependency @graasp/ui to v3.2.4 (#699)
Browse files Browse the repository at this point in the history
* fix(deps): update dependency @graasp/ui to v3.2.4

* fix: userswitch props

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: spaenleh <[email protected]>
  • Loading branch information
renovate[bot] and spaenleh authored Jul 19, 2023
1 parent d14a3a1 commit cee6fae
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 16 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"@graasp/query-client": "1.1.5",
"@graasp/sdk": "1.1.2",
"@graasp/translations": "1.15.1",
"@graasp/ui": "3.2.3",
"@graasp/ui": "3.2.4",
"@mui/icons-material": "5.11.16",
"@mui/lab": "5.0.0-alpha.135",
"@mui/material": "5.13.7",
Expand Down
13 changes: 3 additions & 10 deletions src/components/common/UserSwitchWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import { MemberRecord } from '@graasp/sdk/frontend';
import { BUILDER } from '@graasp/translations';
import { UserSwitchWrapper as GraaspUserSwitch } from '@graasp/ui';

import { DOMAIN, SIGN_IN_PATH } from '../../config/constants';
import { SIGN_IN_PATH } from '../../config/constants';
import { useBuilderTranslation } from '../../config/i18n';
import { MEMBER_PROFILE_PATH } from '../../config/paths';
import { hooks, mutations } from '../../config/queryClient';
import { mutations } from '../../config/queryClient';
import {
HEADER_MEMBER_MENU_BUTTON_ID,
HEADER_MEMBER_MENU_SEE_PROFILE_BUTTON_ID,
Expand All @@ -21,11 +21,7 @@ type Props = {
};

const UserSwitchWrapper = ({ ButtonContent }: Props): JSX.Element => {
const {
data: member,
isLoading,
isSuccess: isSuccessUser,
} = useCurrentUserContext();
const { data: member, isLoading } = useCurrentUserContext();
const { t: translateBuilder } = useBuilderTranslation();
const { mutateAsync: signOut } = mutations.useSignOut();
// todo: does not exist on mutations since we use httpOnly Cookie
Expand All @@ -39,7 +35,6 @@ const UserSwitchWrapper = ({ ButtonContent }: Props): JSX.Element => {
signOut={signOut}
currentMember={member}
isCurrentMemberLoading={isLoading}
isCurrentMemberSuccess={isSuccessUser}
// fix in query client
// switchMember={switchMember as any}
seeProfileText={translateBuilder(BUILDER.USER_SWITCH_PROFILE_BUTTON)}
Expand All @@ -49,9 +44,7 @@ const UserSwitchWrapper = ({ ButtonContent }: Props): JSX.Element => {
signOutText={translateBuilder(BUILDER.USER_SWITCH_SIGN_OUT_BUTTON)}
// switchMemberText={translateBuilder(BUILDER.USER_SWITCH_SWITCH_USER_TEXT)}
profilePath={MEMBER_PROFILE_PATH}
domain={DOMAIN}
redirectPath={SIGN_IN_PATH}
useMembers={hooks.useMembers}
buttonId={HEADER_MEMBER_MENU_BUTTON_ID}
signInMenuItemId={HEADER_MEMBER_MENU_SIGN_IN_BUTTON_ID}
signOutMenuItemId={HEADER_MEMBER_MENU_SIGN_OUT_BUTTON_ID}
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4802,9 +4802,9 @@ __metadata:
languageName: node
linkType: hard

"@graasp/ui@npm:3.2.3":
version: 3.2.3
resolution: "@graasp/ui@npm:3.2.3"
"@graasp/ui@npm:3.2.4":
version: 3.2.4
resolution: "@graasp/ui@npm:3.2.4"
dependencies:
"@graasp/sdk": 1.1.2
clsx: 1.2.1
Expand Down Expand Up @@ -4837,7 +4837,7 @@ __metadata:
optional: true
ag-grid-react:
optional: true
checksum: 1d14ff9a310113f66ea00327570449f09d1f2e3af5cb266df5c69dfa3c577fb45bd4ac4eef77b241c1be0d42be3ad949975505335f765cf4c5c404cfdda01f4c
checksum: 7a7847e97f3aef884d6bae19ae208ce542213742f0e8825d9fe38c51ceac7e9772248e8fdc03ee8ee885e1b19cf4c324291a33fd51a92e7fe5c2080e207a9240
languageName: node
linkType: hard

Expand Down Expand Up @@ -12149,7 +12149,7 @@ __metadata:
"@graasp/query-client": 1.1.5
"@graasp/sdk": 1.1.2
"@graasp/translations": 1.15.1
"@graasp/ui": 3.2.3
"@graasp/ui": 3.2.4
"@mui/icons-material": 5.11.16
"@mui/lab": 5.0.0-alpha.135
"@mui/material": 5.13.7
Expand Down

0 comments on commit cee6fae

Please sign in to comment.