profile button fix on mobile not closing menu

This commit is contained in:
bflatastic committed 2024-09-13 10:31:02 +07:00
1 parent 23d980916f
commit 85fa610d6b
2 files changed
+5 -2

No files matched your search

@@ -379,7 +379,10 @@ export default function TopNav({
label="My Profile"
small
variant="secondary"
onClick={() => history.push(url)}
onClick={() => {
history.push(url);
handleNavLinkClick();
}}
className="d-block d-lg-none"
/>
);
@@ -389,7 +389,7 @@ function NewProfilePage(this: any, props: Props) {
];
return (
<Container type="panel-full" className="profile-container">
<Container type="panel-full">
<Panel clear={true}>
<div className="d-flex flex-column flex-lg-row py-4">
<div className="mb-3 me-lg-4 mb-lg-0">