l-min-components 1.0.1163 → 1.0.1165

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.0.1163",
3
+ "version": "1.0.1165",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "src/assets",
@@ -51,6 +51,7 @@ const AppMainLayout = ({ children }) => {
51
51
  const [deactivated, setDeactivated] = useState(true); // testing, until we get account setup
52
52
  const [gracePeriod, setGracePeriod] = useState(true); // test
53
53
  const [deviceWidth, setDeviceWidth] = useState(window.innerWidth);
54
+ const [newLoadingForPostDefaultAccount, setNewLoadingForPostDefaultAccount] = useState(true)
54
55
 
55
56
  // for mobile view
56
57
  useEffect(() => {
@@ -79,6 +80,13 @@ const AppMainLayout = ({ children }) => {
79
80
  handleCurrentSubscription,
80
81
  } = useHeader();
81
82
 
83
+ useEffect(()=>{
84
+ if(setDefaultAccount?.data){
85
+ setNewLoadingForPostDefaultAccount(false)
86
+ }
87
+
88
+ }, [setDefaultAccount?.data])
89
+
82
90
  useEffect(() => {
83
91
  if (window.location.host.includes("coming")) {
84
92
  setComing(true);
@@ -256,7 +264,7 @@ const AppMainLayout = ({ children }) => {
256
264
  <MobileLayout findText={findText} />
257
265
  ) : (
258
266
  <>
259
- {isTranslationsLoading && Object.keys(translations)?.length === 0 ? (
267
+ {isTranslationsLoading && newLoadingForPostDefaultAccount Object.keys(translations)?.length === 0 ? (
260
268
  <FullPageLoader hasBackground fixed={true} />
261
269
  ) : (
262
270
  <Layout