Skip to content

Commit

Permalink
Legg til default tekst på ekstern-oppgave knapp (#1337)
Browse files Browse the repository at this point in the history
  • Loading branch information
tu55eladd authored Jan 8, 2025
1 parent 1dcf9f1 commit 90349b5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/datatypes/eksternAktivitetTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ type Lenke = RequiredLenkeProps;
type SentimentType = 'POSITIVE' | 'NEUTRAL' | 'NEGATIVE';

export interface Oppgave extends Lenke {
knapptekst: string;
// TODO: Få denne fra backend, den finnes ikke der idag (desverre :( )
knapptekst?: string;
}

export interface LenkeMedType extends RequiredLenkeProps {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const customAlertStripe = (oppgave: Oppgave) => (
{oppgave.subtekst}

<Button variant={'primary'} as="a" href={oppgave.url} className="flex w-fit mt-4">
{oppgave.knapptekst}
{oppgave.knapptekst || 'Gå videre'}
</Button>
</Alert>
);
Expand Down

0 comments on commit 90349b5

Please sign in to comment.