Skip to content

Commit

Permalink
Ham 52 fix help button in worker profile (#205)
Browse files Browse the repository at this point in the history
* fix(app/worker/signout): logout user when visiting sign up page

* fix(app/auth-pages): logout users

* fix(app/profiles): update help buttons in drawers
  • Loading branch information
KacperKoza343 authored Jul 8, 2024
1 parent 8d3f1ad commit ccfeee1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { t } from 'i18next';
import type { BottomMenuItem } from '@/components/layout/protected/drawer-navigation';
import { HelpIcon, UserOutlinedIcon } from '@/components/ui/icons';
import { routerPaths } from '@/router/router-paths';
import { env } from '@/shared/env';

export const operatorDrawerBottomMenuItems: BottomMenuItem[] = [
{
Expand All @@ -11,7 +12,7 @@ export const operatorDrawerBottomMenuItems: BottomMenuItem[] = [
},
{
label: t('components.DrawerNavigation.help'),
link: routerPaths.homePage,
link: env.VITE_HUMAN_PROTOCOL_HELP_URL,
icon: <HelpIcon />,
},
];
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import type {
} from '@/components/layout/protected/drawer-navigation';
import { HelpIcon, UserOutlinedIcon, WorkIcon } from '@/components/ui/icons';
import { routerPaths } from '@/router/router-paths';
import { env } from '@/shared/env';

export const workerDrawerTopMenuItems = (
addressRegistered: boolean
Expand Down Expand Up @@ -47,7 +48,7 @@ export const workerDrawerBottomMenuItems: BottomMenuItem[] = [
},
{
label: t('components.DrawerNavigation.help'),
link: routerPaths.homePage,
link: env.VITE_HUMAN_PROTOCOL_HELP_URL,
icon: <HelpIcon />,
},
];

0 comments on commit ccfeee1

Please sign in to comment.