l-min-components 1.7.1306 → 1.7.1308
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/assets/images/warning_avatar.png +0 -0
- package/src/components/AppMainLayout/index.jsx +12 -6
- package/src/components/AppMainLayout/index.styled.js +1 -1
- package/src/components/InputEmoji/index.jsx +681 -0
- package/src/components/deactivated/index.jsx +147 -12
- package/src/components/deactivated/modal/subscription-expired-modal.jsx +53 -63
- package/src/components/fileRightBar/instructorRightBar2/index.jsx +1 -1
- package/src/components/header/getHeaderDetails.js +13 -9
- package/src/components/header/index.jsx +7 -5
- package/src/components/index.js +1 -0
- package/src/components/instructorAccountSwitcher/index.jsx +38 -29
- package/src/components/sideBar/sideMenu/index.jsx +7 -4
- package/src/components/sideBar/sideMenu/styles/index.jsx +4 -0
- package/src/components/sideBar/userCard/index.jsx +6 -8
- package/src/hooks/leftNavMenu.jsx +4 -0
- package/src/hooks/messaging-kit/index.jsx +44 -61
- package/src/hooks/utils/cookiePolling.jsx +44 -0
package/package.json
CHANGED
|
Binary file
|
|
@@ -131,10 +131,10 @@ const AppMainLayout = ({ children }) => {
|
|
|
131
131
|
handleCurrentSubscription,
|
|
132
132
|
getDefaultAccount,
|
|
133
133
|
handleGetDefaultAccount,
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
134
|
+
user,
|
|
135
|
+
userDetails,
|
|
136
|
+
} = useHeader({ default: true });
|
|
137
|
+
// get current default account and store in cookie (from api);
|
|
138
138
|
useEffect(() => {
|
|
139
139
|
if (getDefaultAccount?.data) {
|
|
140
140
|
const date = new Date();
|
|
@@ -298,15 +298,17 @@ const AppMainLayout = ({ children }) => {
|
|
|
298
298
|
setIsTranslationsLoading,
|
|
299
299
|
} = useTranslation(wordBank);
|
|
300
300
|
|
|
301
|
-
const messageKit = useMessageKit(
|
|
301
|
+
const messageKit = useMessageKit(); // useMessageKit
|
|
302
302
|
|
|
303
303
|
return (
|
|
304
304
|
<OutletContext.Provider
|
|
305
305
|
value={{
|
|
306
306
|
messageKit,
|
|
307
307
|
affiliateAccount,
|
|
308
|
+
userDetails,
|
|
308
309
|
findAccountNames,
|
|
309
310
|
accountName,
|
|
311
|
+
user,
|
|
310
312
|
setRightComponent,
|
|
311
313
|
setRightLayout,
|
|
312
314
|
generalData,
|
|
@@ -404,11 +406,15 @@ const AppMainLayout = ({ children }) => {
|
|
|
404
406
|
)}
|
|
405
407
|
|
|
406
408
|
{window.location.pathname.includes("enterprise") &&
|
|
407
|
-
planState === "GRACE PERIOD"
|
|
409
|
+
(planState === "GRACE PERIOD" ||
|
|
410
|
+
planState === "EXPIRED" ||
|
|
411
|
+
(!userPlanData?.loading && !planState)) &&
|
|
412
|
+
!window.location.pathname.includes("file-m") ? (
|
|
408
413
|
<GracePeriod
|
|
409
414
|
getCurrentSubscriptionData={getCurrentSubscriptionData}
|
|
410
415
|
handleCurrentSubscription={handleCurrentSubscription}
|
|
411
416
|
gracePeriod={gracePeriod}
|
|
417
|
+
stateType={planState === "GRACE PERIOD" ? 1 : 2}
|
|
412
418
|
/>
|
|
413
419
|
) : (
|
|
414
420
|
children ?? <Outlet />
|