mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-01-11 02:48:22 +01:00
Fix use menu logout button
This commit is contained in:
parent
104dcbe0d6
commit
300c114f3e
@ -10,6 +10,7 @@ import DropdownToggle from "react-bootstrap-v5/lib/esm/DropdownToggle";
|
|||||||
import {localeService} from "../../service/localeService";
|
import {localeService} from "../../service/localeService";
|
||||||
import {useTranslation} from "react-i18next";
|
import {useTranslation} from "react-i18next";
|
||||||
import {useNavigation} from "../../hooks/navigationHook";
|
import {useNavigation} from "../../hooks/navigationHook";
|
||||||
|
import {baseAddress} from "../../service/backendConfiguration";
|
||||||
|
|
||||||
const LanguageSelector = () => {
|
const LanguageSelector = () => {
|
||||||
const languages = localeService.getLanguages();
|
const languages = localeService.getLanguages();
|
||||||
@ -84,7 +85,7 @@ const Header = ({page, tab}) => {
|
|||||||
<DropdownItem onClick={toggleColorChooser}>
|
<DropdownItem onClick={toggleColorChooser}>
|
||||||
<Fa icon={faPalette}/> {t('html.label.themeSelect')}
|
<Fa icon={faPalette}/> {t('html.label.themeSelect')}
|
||||||
</DropdownItem>
|
</DropdownItem>
|
||||||
{authRequired ? <DropdownItem href="./auth/logout">
|
{authRequired ? <DropdownItem href={baseAddress + "/auth/logout"}>
|
||||||
<Fa icon={faDoorOpen}/> {t('html.login.logout')}
|
<Fa icon={faDoorOpen}/> {t('html.login.logout')}
|
||||||
</DropdownItem> : ''}
|
</DropdownItem> : ''}
|
||||||
</DropdownMenu>
|
</DropdownMenu>
|
||||||
|
Loading…
Reference in New Issue
Block a user