Skip to content

Commit

Permalink
forenkle logikk
Browse files Browse the repository at this point in the history
  • Loading branch information
sondrele committed Nov 25, 2024
1 parent cdda7ee commit f202b3f
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ import { PREVIEW_ARBEIDSMARKEDSTILTAK_URL } from "@/constants";
import { useNavigateAndReplaceUrl } from "@/hooks/useNavigateWithoutReplacingUrl";
import { ContainerLayout } from "@/layouts/ContainerLayout";
import commonStyles from "../Page.module.scss";
import { TiltaksgjennomforingStatus, Toggles } from "@mr/api-client";
import { Toggles } from "@mr/api-client";
import { useFeatureToggle } from "@/api/features/useFeatureToggle";
import { GjennomforingStatusMedAarsakTag } from "@mr/frontend-common";
import { gjennomforingIsAktiv } from "@mr/frontend-common/utils/utils";

function createBrodsmuler(
tiltaksgjennomforingId: string,
Expand Down Expand Up @@ -107,9 +108,7 @@ export function TiltaksgjennomforingPage() {
<GjennomforingStatusMedAarsakTag status={tiltaksgjennomforing.status} />
<DupliserTiltak tiltaksgjennomforing={tiltaksgjennomforing} />
</div>
{[TiltaksgjennomforingStatus.GJENNOMFORES, TiltaksgjennomforingStatus.PLANLAGT].includes(
tiltaksgjennomforing.status.status,
) && (
{gjennomforingIsAktiv(tiltaksgjennomforing.status.status) && (
<div className={headerStyles.forhandsvisningsknapp}>
<Lenkeknapp
size="small"
Expand Down

0 comments on commit f202b3f

Please sign in to comment.