l-min-components 1.0.1165 → 1.0.1166

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.1165",
3
+ "version": "1.0.1166",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "src/assets",
@@ -51,7 +51,8 @@ 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
+ const [newLoadingForPostDefaultAccount, setNewLoadingForPostDefaultAccount] =
55
+ useState(true);
55
56
 
56
57
  // for mobile view
57
58
  useEffect(() => {
@@ -80,12 +81,11 @@ const AppMainLayout = ({ children }) => {
80
81
  handleCurrentSubscription,
81
82
  } = useHeader();
82
83
 
83
- useEffect(()=>{
84
- if(setDefaultAccount?.data){
85
- setNewLoadingForPostDefaultAccount(false)
84
+ useEffect(() => {
85
+ if (setDefaultAccount?.data) {
86
+ setNewLoadingForPostDefaultAccount(false);
86
87
  }
87
-
88
- }, [setDefaultAccount?.data])
88
+ }, [setDefaultAccount?.data]);
89
89
 
90
90
  useEffect(() => {
91
91
  if (window.location.host.includes("coming")) {
@@ -264,7 +264,9 @@ const AppMainLayout = ({ children }) => {
264
264
  <MobileLayout findText={findText} />
265
265
  ) : (
266
266
  <>
267
- {isTranslationsLoading && newLoadingForPostDefaultAccount Object.keys(translations)?.length === 0 ? (
267
+ {isTranslationsLoading &&
268
+ newLoadingForPostDefaultAccount &&
269
+ Object.keys(translations)?.length === 0 ? (
268
270
  <FullPageLoader hasBackground fixed={true} />
269
271
  ) : (
270
272
  <Layout