Skip to content

Commit

Permalink
allow under oppfolging users to access new cv
Browse files Browse the repository at this point in the history
  • Loading branch information
jjtg-nav committed Feb 16, 2021
1 parent 59b277c commit 9af97e9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
4 changes: 1 addition & 3 deletions src/header/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ const Header = ({
{authenticationStatus === AuthStatus.IS_AUTHENTICATED ? (
<div className="Header__Innstillinger__wrapper">
{arbeidsgiverSelect && arbeidsgiverSelect}
{!underOppfolging && showNewCvLink && <NewCvLink />}
{showNewCvLink && <NewCvLink />}
{underOppfolging &&
<Lenkeknapp
onClick={onNavigationClick("https://www.nav.no/person/dittnav")}
Expand Down Expand Up @@ -266,7 +266,6 @@ const Header = ({
applikasjon={applikasjon}
validerNavigasjon={validerNavigasjon}
onNavigationClick={onNavigationClick}
underOppfolging={underOppfolging}
/>
</div>
)}
Expand Down Expand Up @@ -320,7 +319,6 @@ const Header = ({
applikasjon={applikasjon}
validerNavigasjon={validerNavigasjon}
onNavigationClick={onNavigationClick}
underOppfolging={underOppfolging}
/>
</div>
)}
Expand Down
5 changes: 2 additions & 3 deletions src/header/personbruker/Personbrukermeny.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import './Personbrukermeny.less';
import {NavLink} from 'react-router-dom';
import Cookies from "universal-cookie";
import {NY_CV_URL} from "../../fasitProperties";
import {useSelector} from "react-redux";

const tabs = [
{
Expand Down Expand Up @@ -84,7 +83,7 @@ export const NyCVLenkeMobil = ({onNavigationClick}) => (
);


export const Personbrukermeny = ({ applikasjon, onNavigationClick, underOppfolging }) => {
export const Personbrukermeny = ({ applikasjon, onNavigationClick }) => {
const cookies = new Cookies();
const useNewCv = cookies.get('useNewCv') === 'true';
const showNewCvLink = !useNewCv && cookies.get('newCvRolloutGroup') === 'true';
Expand Down Expand Up @@ -139,7 +138,7 @@ export const Personbrukermeny = ({ applikasjon, onNavigationClick, underOppfolgi
</div>
)
))}
{underOppfolging && showNewCvLink && <NyCVLenkeMobil onNavigationClick={onNavigationClick} />}
{showNewCvLink && <NyCVLenkeMobil onNavigationClick={onNavigationClick} />}
<InnstillingerLenkeMobil applikasjon={applikasjon} onNavigationClick={onNavigationClick}/>
</nav>
);
Expand Down

0 comments on commit 9af97e9

Please sign in to comment.