Skip to content

Commit fc23aac

Browse files
committed
feat: Pass logOut and AccountName SessionState data for the AblyUi Header
1 parent b3cc664 commit fc23aac

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"no-githooks": "git config --unset core.hooksPath"
4040
},
4141
"dependencies": {
42-
"@ably/ui": "15.4.1",
42+
"@ably/ui": "15.6.0-dev.1a416b3",
4343
"@codesandbox/sandpack-react": "^2.9.0",
4444
"@mdx-js/react": "^2.3.0",
4545
"@react-hook/media-query": "^1.1.1",

src/components/Layout/Header.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ const Header: React.FC<HeaderProps> = ({ searchBar = true }) => {
1515
const sessionState = {
1616
...userContext.sessionState,
1717
signedIn: userContext.sessionState.signedIn ?? false,
18+
logOut: userContext.sessionState.logOut ?? { token: '', href: '' },
19+
accountName: userContext.sessionState.accountName ?? '',
1820
account: userContext.sessionState.account ?? { links: { dashboard: { href: '#' } } },
1921
};
2022

yarn.lock

+6-6
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
resolved "https://registry.yarnpkg.com/@aashutoshrathi/word-wrap/-/word-wrap-1.2.6.tgz#bd9154aec9983f77b3a034ecaa015c2e4201f6cf"
88
integrity sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A2t7wpE2S9XfBYTiIl+XFhQG2bjy4Pu1I+EAlCNUzRDYDdFwFYUKvXcIA==
99

10-
"@ably/ui@15.4.1":
11-
version "15.4.1"
12-
resolved "https://registry.yarnpkg.com/@ably/ui/-/ui-15.4.1.tgz#f1d3df5d7be93902073aa34919e27ec1421a2b5a"
13-
integrity sha512-HG+TpLFMeGf4sv6h/ko+FtaV7MbROcoLQZFn4SaAKmOGAOtGeh8urj0oMa+nW4CiZw+QDcKUeQd6qLL5x93q8w==
10+
"@ably/ui@15.6.0-dev.1a416b3":
11+
version "15.6.0-dev.1a416b3"
12+
resolved "https://registry.yarnpkg.com/@ably/ui/-/ui-15.6.0-dev.1a416b3.tgz#b92a40c57eeba83772151b1adda1be041649a40a"
13+
integrity sha512-zEAlflCaxgiD34iLayh4Fsm8jeMSVpaY/gF7q5vPlFl/ChP2ieADEQCYYr00tcHPb9YSrI7WPl284MThfp6ZpQ==
1414
dependencies:
1515
"@radix-ui/react-accordion" "^1.2.1"
1616
"@radix-ui/react-navigation-menu" "^1.2.4"
@@ -19,7 +19,7 @@
1919
addsearch-js-client "^1.0.2"
2020
array-flat-polyfill "^1.0.1"
2121
clsx "^2.1.1"
22-
dompurify "^3.1.4"
22+
dompurify "^3.2.4"
2323
highlight.js "^11.9.0"
2424
highlightjs-curl "^1.3.0"
2525
js-cookie "^3.0.5"
@@ -6303,7 +6303,7 @@ domino@^2.1.6:
63036303
resolved "https://registry.yarnpkg.com/domino/-/domino-2.1.6.tgz#fe4ace4310526e5e7b9d12c7de01b7f485a57ffe"
63046304
integrity sha512-3VdM/SXBZX2omc9JF9nOPCtDaYQ67BGp5CoLpIQlO2KCAPETs8TcDHacF26jXadGbvUteZzRTeos2fhID5+ucQ==
63056305

6306-
dompurify@^3.1.4, dompurify@^3.2.4:
6306+
dompurify@^3.2.4:
63076307
version "3.2.4"
63086308
resolved "https://registry.yarnpkg.com/dompurify/-/dompurify-3.2.4.tgz#af5a5a11407524431456cf18836c55d13441cd8e"
63096309
integrity sha512-ysFSFEDVduQpyhzAob/kkuJjf5zWkZD8/A9ywSp1byueyuCfHamrCBa14/Oc2iiB0e51B+NpxSl5gmzn+Ms/mg==

0 commit comments

Comments
 (0)