Skip to content

Commit

Permalink
manuell nedetid banner (#1200)
Browse files Browse the repository at this point in the history
* manuell nedetid banner

* skrivefeil
  • Loading branch information
sindredl authored Feb 27, 2024
1 parent 56a9785 commit 64f2dc8
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/InnloggingBoundary/VarselOmNedetid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Feature } from '@/FeatureToggleProvider';
import { hentFeatureTogglesVarianter } from '@/services/rest-service';
import { Variant } from '@/types/unleash-variant';
import { Alert } from '@navikt/ds-react';
import React, { FunctionComponent, useEffect, useState } from 'react';
import { FunctionComponent, useEffect, useState } from 'react';

export const VarselOmNedetid: FunctionComponent = () => {
const [variant, setVariant] = useState<Variant>();
Expand All @@ -15,6 +15,14 @@ export const VarselOmNedetid: FunctionComponent = () => {
.catch(() => void 0);
}, []);

//MIDLERTIDIG BANNER FOR NEDETID PÅ BACKEND:
return (
<Alert variant="warning">
Vi jobber for øyeblikket med vedlikehold. Tjenesten vil være helt eller delvis utilgjengelig i en kort
periode.
</Alert>
);

if (variant && variant.enabled) {

Check failure on line 26 in src/InnloggingBoundary/VarselOmNedetid.tsx

View workflow job for this annotation

GitHub Actions / Bygg

'variant' is possibly 'undefined'.
return (
<Alert variant="warning">
Expand Down

0 comments on commit 64f2dc8

Please sign in to comment.