l-min-components 1.0.776 → 1.0.779
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
|
@@ -44,6 +44,8 @@ const SideMenu = ({
|
|
|
44
44
|
// Normal route filter
|
|
45
45
|
const [filteredRoutes, setFilteredRoutes] = useState();
|
|
46
46
|
|
|
47
|
+
const isPersonal = generalData?.selectedAccount?.type === "PERSONAL" && window.location.hostname.includes("staging")
|
|
48
|
+
|
|
47
49
|
useEffect(() => {
|
|
48
50
|
if (userType) {
|
|
49
51
|
setFilteredRoutes(
|
|
@@ -301,10 +303,7 @@ const SideMenu = ({
|
|
|
301
303
|
)}
|
|
302
304
|
minimal={isOpen}
|
|
303
305
|
>
|
|
304
|
-
{!(
|
|
305
|
-
window.location.hostname.includes("personal") &&
|
|
306
|
-
window.location.hostname.includes("staging")
|
|
307
|
-
) && (
|
|
306
|
+
{!isPersonal && (
|
|
308
307
|
<>
|
|
309
308
|
<IconContainer active={active}>
|
|
310
309
|
{active ? iconActive : icon}
|