Skip to content

Commit

Permalink
Feature/fjern tagg (#153)
Browse files Browse the repository at this point in the history
* Fjern påbegynt-tagg

* Fjern tag helt
  • Loading branch information
V1adau authored Dec 9, 2024
1 parent d41c629 commit f694b1d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/app/(minCV)/_components/MinCVPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export default function MinCVPage() {
</>
) : (
<>
<HeaderPanel title="Forhåndsvis CV" visTag />
<HeaderPanel title="Forhåndsvis CV" />
<Forhandsvisning setVisHovedinnhold={setVisHovedinnhold} />
</>
)}
Expand Down
2 changes: 1 addition & 1 deletion src/app/(minCV)/_components/hjemmelside/Hjemmelside.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export function Hjemmelside() {

return (
<div>
<HeaderPanel title="Slik bruker Nav CV-opplysningene" visTag={false} />
<HeaderPanel title="Slik bruker Nav CV-opplysningene" />
<Box className={[styles.main, styles.mb16]}>
<Box background="surface-default" padding="10" className={styles.box}>
<Hjemmelstekst />
Expand Down
2 changes: 1 addition & 1 deletion src/app/_common/components/Feilside.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { arbeidsplassenBaseUrl, navBaseUrl } from "@/app/_common/utils/urlUtils"
export function Feilside({ årsak }) {
return (
<>
<HeaderPanel visTag={false} />
<HeaderPanel />
<HStack className={styles.pageContainer}>
<Box padding="10" className={[styles.box, styles.mt3]}>
<VStack>
Expand Down
9 changes: 2 additions & 7 deletions src/app/_common/components/HeaderPanel.jsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { BodyShort, Box, Detail, Heading, Hide, HStack, Show, Skeleton, Tag, VStack } from "@navikt/ds-react";
import { BodyShort, Box, Detail, Heading, Hide, HStack, Show, Skeleton, VStack } from "@navikt/ds-react";
import { formatterFullDatoMedFallback } from "@/app/_common/utils/stringUtils";
import { usePerson } from "@/app/_common/hooks/swr/usePerson";
import { useCv } from "@/app/_common/hooks/swr/useCv";

function HeaderPanel({ title = "Min CV", visTag = true }) {
function HeaderPanel({ title = "Min CV" }) {
const { personalia } = usePerson();
const { cv } = useCv();

Expand Down Expand Up @@ -37,11 +37,6 @@ function HeaderPanel({ title = "Min CV", visTag = true }) {
<Heading level="1" size="large">
{title}
</Heading>
{visTag && (
<Tag size="small" variant="info-filled">
{personalia ? "Påbegynt" : "Laster..."}
</Tag>
)}
</HStack>
<Hide below="md">
<HStack gap="4" align="center">
Expand Down

0 comments on commit f694b1d

Please sign in to comment.