l-min-components 1.0.234 → 1.0.237
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
|
@@ -19,10 +19,6 @@ import { leftNavMenu, user, sideMenuOptions } from "../../hooks/leftNavMenu";
|
|
|
19
19
|
const AppMainLayout = () => {
|
|
20
20
|
const [isOpen, setIsOpen] = useState(true);
|
|
21
21
|
const location = useLocation();
|
|
22
|
-
|
|
23
|
-
useEffect(() => {
|
|
24
|
-
if (location.pathname === "/documentation") setIsOpen(false);
|
|
25
|
-
}, [isOpen]);
|
|
26
22
|
const [rightLayout, setRightLayout] = useState(true);
|
|
27
23
|
const [rightComponent, setRightComponent] = useState();
|
|
28
24
|
const [generalData, setGeneralData] = useState({});
|
|
@@ -128,7 +128,6 @@ const AccountDropdown = (props) => {
|
|
|
128
128
|
{props?.selectedAccount?.type || props.activeAccountType}{" "}
|
|
129
129
|
</h2>
|
|
130
130
|
</div>
|
|
131
|
-
<CloseIcon onClick={(e) => props.setIsOpen(!props.isOpen)} />
|
|
132
131
|
</AccountDropdownHeader>
|
|
133
132
|
<AccountDropdownBody>
|
|
134
133
|
{/* {props.apiAccountType === `${props.accountType}` && ( */}
|
|
@@ -191,7 +191,7 @@ const HeaderComponent = (props) => {
|
|
|
191
191
|
<ArrowDownIcon />
|
|
192
192
|
</CountryFlagGroup>
|
|
193
193
|
|
|
194
|
-
<UserProfile onClick={() => setIsOpen(
|
|
194
|
+
<UserProfile onClick={() => setIsOpen(!isOpen)}>
|
|
195
195
|
<div className="user-img-container">
|
|
196
196
|
<img src={props.avatar} alt="profile" />
|
|
197
197
|
</div>
|