Use a modern React context for identity in the app (#30098)

This commit is contained in:
Renaud Chaput authored and GitHub committed 2024-05-19 17:07:32 +00:00
1 parent 6282b6da77
commit a178ba7cd5
26 files changed
+212 -223

No files matched your search

+10
View File
@@ -44,12 +44,22 @@
* @property {string} sso_redirect
*/
/**
* @typedef Role
* @property {string} id
* @property {string} name
* @property {string} permissions
* @property {string} color
* @property {boolean} highlighted
*/
/**
* @typedef InitialState
* @property {Record<string, import("./api_types/accounts").ApiAccountJSON>} accounts
* @property {InitialStateLanguage[]} languages
* @property {boolean=} critical_updates_pending
* @property {InitialStateMeta} meta
* @property {Role?} role
*/
const element = document.getElementById('initial-state');