Verified Commit 2d82e7f2 authored by Mehdi Baaboura's avatar Mehdi Baaboura
Browse files

Enabled Account switcher

parent 5ef16a13
......@@ -22,6 +22,7 @@ import DesktopHeader from "./DesktopHeader";
import {Link} from "react-router-dom";
import Auth from "../../../Auth/Auth";
import __ from "../../../i18n/i18n";
import AccountSwitcher from "../../../Component/AccountSwitcher";
export default class DesktopHeaderAccountDropdown extends Component<{
open: boolean,
......@@ -70,14 +71,14 @@ export default class DesktopHeaderAccountDropdown extends Component<{
<i className="fas fa-wrench iconMargin-10"/>{__("navigation.account.settings")}
</a>
{/*<Link to={"#"} onClick={(e) => {
<Link to={"#"} onClick={(e) => {
e.preventDefault();
DesktopHeaderAccountDropdown.close(this.props.parent);
AccountSwitcher.open();
}}>
<i className={"fas fa-user-friends iconMargin-10"}/>{__("navigation.account.switch")}
</Link>*/}
</Link>
<Link to={"#"} onClick={(e) => {
e.preventDefault();
......
......@@ -31,6 +31,7 @@ import {Link} from "react-router-dom";
import VerifiedBadge from "../../../Component/VerifiedBadge";
import __ from "../../../i18n/i18n";
import PrivacyBadge from "../../../Component/PrivacyBadge";
import AccountSwitcher from "../../../Component/AccountSwitcher";
import ClickEvent = JQuery.ClickEvent;
export default class MobileSider extends Component<{
......@@ -123,7 +124,7 @@ export default class MobileSider extends Component<{
<span className="nav-text">{__("navigation.account.settings")}</span>
</a>
</Menu.Item>,
/*<Menu.Item key="3">
<Menu.Item key="3">
<Link to={"#"} onClick={(e) => {
e.preventDefault();
AccountSwitcher.open();
......@@ -132,7 +133,7 @@ export default class MobileSider extends Component<{
<i className={"fas fa-user-friends iconMargin-10"}/>
<span className="nav-text">{__("navigation.account.switch")}</span>
</Link>
</Menu.Item>,*/
</Menu.Item>,
<Menu.Item key="4">
<Link to={"#"} onClick={(e) => {
e.preventDefault();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment