File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed
packages/nextjs/src/components/_editor-only/global-warnings Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,19 @@ export const RenderToEditorGlobalWarnings = ({ children }: { children: React.Rea
30
30
} ;
31
31
32
32
export const EditorGlobalWarnings = ( { content } : { content : ContentProps } ) => {
33
+ const godkjenteSider = [
34
+ 'no.nav.navno:situation-page' ,
35
+ 'no.nav.navno:current-topic-page' ,
36
+ 'no.nav.navno:guide-page' ,
37
+ 'no.nav.navno:themed-article-page' ,
38
+ 'no.nav.navno:content-page-with-sidemenus' ,
39
+ 'no.nav.navno:tools-page' ,
40
+ 'no.nav.navno:generic-page' ,
41
+ ] ;
42
+
43
+ if ( ! godkjenteSider . includes ( content . type ) ) {
44
+ return ;
45
+ }
33
46
const hasErrors = ( ) : boolean => {
34
47
return (
35
48
KortUrlWarning ( { content } ) !== null ||
@@ -44,7 +57,7 @@ export const EditorGlobalWarnings = ({ content }: { content: ContentProps }) =>
44
57
< >
45
58
{ hasErrors ( ) && (
46
59
< Alert variant = "warning" >
47
- Redaktørvarsel:
60
+ < strong > Redaktørvarsel:</ strong >
48
61
< br />
49
62
Disse problemene må rettes før publisering:
50
63
< ul >
You can’t perform that action at this time.
0 commit comments