l-min-components 1.7.1463 → 1.7.1464
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
|
@@ -431,7 +431,7 @@ const AppMainLayout = ({ children }) => {
|
|
|
431
431
|
handleGetNotificationMarkRead,
|
|
432
432
|
planState,
|
|
433
433
|
storageSummary,
|
|
434
|
-
refreshStorageSumary: handleGetStorageSummary,
|
|
434
|
+
refreshStorageSumary: handleGetStorageSummary,
|
|
435
435
|
}}
|
|
436
436
|
>
|
|
437
437
|
{/* display mobile layout on device width*/}
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./index.styled";
|
|
10
10
|
import { useLocation, useNavigate } from "react-router-dom";
|
|
11
11
|
// import useHeader from "./getHeaderDetails";
|
|
12
|
-
import { OutletContext } from "..";
|
|
12
|
+
import { FullPageLoader, OutletContext } from "..";
|
|
13
13
|
import deleteCookies from "../instructorAccountSwitcher/deleteCookies";
|
|
14
14
|
/**
|
|
15
15
|
* @param {{
|
|
@@ -25,7 +25,6 @@ const AccountDropdown = (props) => {
|
|
|
25
25
|
useEffect(() => {}, [pathname]);
|
|
26
26
|
|
|
27
27
|
const { envType, findAccountNames } = useContext(OutletContext);
|
|
28
|
-
const { setNewLoadingForPostDefaultAccount } = useContext(OutletContext);
|
|
29
28
|
|
|
30
29
|
useEffect(() => {
|
|
31
30
|
if (props?.selectedAccount) {
|
|
@@ -53,6 +52,8 @@ const AccountDropdown = (props) => {
|
|
|
53
52
|
|
|
54
53
|
// console.log(props?.selectedAccount, "selected");
|
|
55
54
|
|
|
55
|
+
const [isLoading, setIsLoading] = useState(false)
|
|
56
|
+
|
|
56
57
|
return (
|
|
57
58
|
<>
|
|
58
59
|
<AccountDropdownLayout ref={props?.ref}>
|
|
@@ -128,7 +129,7 @@ const AccountDropdown = (props) => {
|
|
|
128
129
|
: ""
|
|
129
130
|
}`}
|
|
130
131
|
onClick={() => {
|
|
131
|
-
|
|
132
|
+
setIsLoading(true)
|
|
132
133
|
|
|
133
134
|
deleteCookies([
|
|
134
135
|
"defaultAccountType",
|
|
@@ -184,7 +185,7 @@ const AccountDropdown = (props) => {
|
|
|
184
185
|
: ""
|
|
185
186
|
}`}
|
|
186
187
|
onClick={() => {
|
|
187
|
-
|
|
188
|
+
setIsLoading(true)
|
|
188
189
|
|
|
189
190
|
deleteCookies([
|
|
190
191
|
"defaultAccountType",
|
|
@@ -232,7 +233,7 @@ const AccountDropdown = (props) => {
|
|
|
232
233
|
: ""
|
|
233
234
|
}`}
|
|
234
235
|
onClick={() => {
|
|
235
|
-
|
|
236
|
+
setIsLoading(true)
|
|
236
237
|
deleteCookies(["defaultAccountType", "defaultAccountID", "activeDeveloperAccount"]);
|
|
237
238
|
props?.setSelectedAccount(enterpriseItem);
|
|
238
239
|
setTimeout(() => {
|
|
@@ -274,7 +275,7 @@ const AccountDropdown = (props) => {
|
|
|
274
275
|
: ""
|
|
275
276
|
}`}
|
|
276
277
|
onClick={() => {
|
|
277
|
-
|
|
278
|
+
setIsLoading(true)
|
|
278
279
|
deleteCookies([
|
|
279
280
|
"defaultAccountType",
|
|
280
281
|
"defaultAccountID","activeDeveloperAccount"
|
|
@@ -322,6 +323,7 @@ const AccountDropdown = (props) => {
|
|
|
322
323
|
</button>
|
|
323
324
|
</AccountDropdownFooter>
|
|
324
325
|
</AccountDropdownLayout>
|
|
326
|
+
{isLoading&&<FullPageLoader hasBackground fixed={true} />}
|
|
325
327
|
</>
|
|
326
328
|
);
|
|
327
329
|
};
|