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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "l-min-components",
3
- "version": "1.7.1306",
3
+ "version": "1.7.1308",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "src/assets",
@@ -131,10 +131,10 @@ const AppMainLayout = ({ children }) => {
131
131
  handleCurrentSubscription,
132
132
  getDefaultAccount,
133
133
  handleGetDefaultAccount,
134
- } = useHeader();
135
-
136
- // get current default account and store in cookie (from api)
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({ affiliateAccount }); // 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 />
@@ -45,7 +45,7 @@ export const MainLayout = styled.div`
45
45
  width: 100%;
46
46
  padding: 84px 20px 20px 0;
47
47
  /* max-height: 100vh; */
48
- min-height: 100vh;
48
+ max-height: 100vh;
49
49
  `;
50
50
 
51
51
  export const LeftLayout = styled.div`