Skip to content

Commit

Permalink
Merge pull request #13 from DefGuard/mark_optional_step
Browse files Browse the repository at this point in the history
feat: add asterisk to mark optional VPN step
  • Loading branch information
wojcik91 authored Aug 23, 2023
2 parents 2c151c9 + a222f19 commit b4a98b1
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 b4a98b1

Please sign in to comment.