File tree 3 files changed +27
-0
lines changed
pages/alert-in-context-page
3 files changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ import { FormsOverviewPage } from 'components/pages/forms-overview-page/FormsOve
29
29
import { VideoPage } from './pages/video-page/VideoPage' ;
30
30
import { CalculatorPage } from './pages/calculator-page/CalculatorPage' ;
31
31
import { UserTestsConfigPreviewPage } from 'components/pages/user-tests-config-preview-page/UserTestsConfigPreviewPage' ;
32
+ import { AlertInContextPage } from './pages/alert-in-context-page/AlertInContextPage' ;
32
33
33
34
const contentToReactComponent : {
34
35
[ key in ContentType ] ?: React . FunctionComponent < ContentProps < key > > ;
@@ -59,6 +60,7 @@ const contentToReactComponent: {
59
60
[ ContentType . FormsOverview ] : FormsOverviewPage ,
60
61
[ ContentType . Calculator ] : CalculatorPage ,
61
62
[ ContentType . UserTestsConfig ] : UserTestsConfigPreviewPage ,
63
+ [ ContentType . AlertInContext ] : AlertInContextPage ,
62
64
63
65
[ ContentType . AreaPage ] : DynamicPage ,
64
66
[ ContentType . FrontPage ] : DynamicPage ,
Original file line number Diff line number Diff line change
1
+ @use ' common' as common ;
2
+
3
+ $margin : 2rem ;
4
+
5
+ .alertInContextPage {
6
+ display : flex ;
7
+ flex-direction : column ;
8
+ max-width : common .$sectionMaxWidth ;
9
+ }
Original file line number Diff line number Diff line change
1
+ import React from 'react' ;
2
+ import { ComponentMapper } from '../../ComponentMapper' ;
3
+
4
+ import { AlertInContextPageProps } from 'types/content-props/alerts' ;
5
+ import { ThemedPageHeader } from '../../_common/headers/themed-page-header/ThemedPageHeader' ;
6
+
7
+ import style from './AlertInContextPage.module.scss' ;
8
+ import { AlertInContext } from 'components/_common/alert-in-context/AlertInContext' ;
9
+
10
+ export const AlertInContextPage = ( props : AlertInContextPageProps ) => {
11
+ return (
12
+ < div className = { style . alertInContextPage } >
13
+ < AlertInContext alert = { props } />
14
+ </ div >
15
+ ) ;
16
+ } ;
You can’t perform that action at this time.
0 commit comments