Skip to content

Commit

Permalink
add asterisk to mark optional VPN step
Browse files Browse the repository at this point in the history
  • Loading branch information
Maciej Wójcik committed Aug 23, 2023
1 parent 2c151c9 commit a222f19
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,19 @@ import { TimeLeft } from '../TimeLeft/TimeLeft';
export const EnrollmentSideBar = () => {
const { LL } = useI18nContext();

const vpnOptional = useEnrollmentStore((state) => state.vpnOptional);

const steps = useMemo((): LocalizedString[] => {
const steps = LL.pages.enrollment.sideBar.steps;
const vpnStep = vpnOptional ? `${steps.vpn()}*` : steps.vpn();
return [
steps.welcome(),
steps.verification(),
steps.password(),
steps.vpn(),
vpnStep as LocalizedString,
steps.finish(),
];
}, [LL.pages.enrollment.sideBar.steps]);
}, [LL.pages.enrollment.sideBar.steps, vpnOptional]);

return (
<div id="enrollment-side-bar">
Expand Down

0 comments on commit a222f19

Please sign in to comment.