l-min-components 1.0.538 → 1.0.539
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
|
@@ -136,6 +136,19 @@ const HeaderComponent = (props) => {
|
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
138
|
}, [userAccountsDetail?.data]);
|
|
139
|
+
|
|
140
|
+
// update general data when selected acct changes
|
|
141
|
+
|
|
142
|
+
useEffect(()=>{
|
|
143
|
+
if(selectedAccount){
|
|
144
|
+
setGeneralData((generalData) => ({
|
|
145
|
+
...generalData,
|
|
146
|
+
selectedAccount: selectedAccount
|
|
147
|
+
|
|
148
|
+
}));
|
|
149
|
+
}
|
|
150
|
+
}, [selectedAccount])
|
|
151
|
+
|
|
139
152
|
const containerRef = useRef(null);
|
|
140
153
|
const secondContainerRef = useRef(null);
|
|
141
154
|
|
|
@@ -251,11 +251,11 @@ const SideMenu = ({
|
|
|
251
251
|
window.location.href = `https://developer.learngual.com${path}`;
|
|
252
252
|
}
|
|
253
253
|
|
|
254
|
-
if (window.location.hostname.includes("staging")) {
|
|
255
|
-
|
|
256
|
-
} else if (window.location.hostname.includes("localhost")) {
|
|
257
|
-
|
|
258
|
-
}
|
|
254
|
+
// if (window.location.hostname.includes("staging")) {
|
|
255
|
+
// window.location.href = `https://559staging.learngual.com${path}`;
|
|
256
|
+
// } else if (window.location.hostname.includes("localhost")) {
|
|
257
|
+
// window.location.href = `http://localhost:${window.location.port}${path}`;
|
|
258
|
+
// }
|
|
259
259
|
}}
|
|
260
260
|
// to={route.path}
|
|
261
261
|
key={index}
|
|
@@ -33,11 +33,12 @@ const UserCard = ({ user, isOpen }) => {
|
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
|
|
37
|
-
if (
|
|
38
|
-
|
|
36
|
+
|
|
37
|
+
if (generalData?.selectedAccount?.type === 'PERSONAL') {
|
|
38
|
+
setOrganizationName(generalData?.selectedAccount?.display_name)
|
|
39
|
+
}else{
|
|
40
|
+
return setOrganizationName(generalData?.selectedAccount?.metadata?.organization_name);
|
|
39
41
|
}
|
|
40
|
-
});
|
|
41
42
|
}
|
|
42
43
|
}, [generalData]);
|
|
43
44
|
console.log(generalData, "data");
|
|
@@ -84,7 +85,7 @@ const UserCard = ({ user, isOpen }) => {
|
|
|
84
85
|
fontWeight: 700,
|
|
85
86
|
fontSize: 15,
|
|
86
87
|
}}
|
|
87
|
-
>{`${organizationName
|
|
88
|
+
>{`${organizationName}.`}</Handle>
|
|
88
89
|
</UserDetail>
|
|
89
90
|
</>
|
|
90
91
|
)}
|