@@ -29,26 +29,26 @@ const LayoutName = styled.p`
29
29
` ;
30
30
31
31
class NewArticleView extends Component {
32
- chooseRenderForm ( id , articleId ) {
32
+ chooseRenderForm ( id , articleId , history ) {
33
33
switch ( id ) {
34
34
case 'gallery_page' :
35
- return < GalleryForm edit = { articleId } /> ;
35
+ return < GalleryForm edit = { articleId } history = { history } /> ;
36
36
case 'hero_page' :
37
- return < HeroForm edit = { articleId } /> ;
37
+ return < HeroForm edit = { articleId } history = { history } /> ;
38
38
case 'simple_page' :
39
- return < SimpleTextForm edit = { articleId } /> ;
39
+ return < SimpleTextForm edit = { articleId } history = { history } /> ;
40
40
case 'ilustrated_page' :
41
- return < IlustratedArticleForm edit = { articleId } /> ;
41
+ return < IlustratedArticleForm edit = { articleId } history = { history } /> ;
42
42
case 'big_slider_page' :
43
- return < SliderForm edit = { articleId } /> ;
43
+ return < SliderForm edit = { articleId } history = { history } /> ;
44
44
case 'article' :
45
- return < ArticleForm edit = { articleId } /> ;
45
+ return < ArticleForm edit = { articleId } history = { history } /> ;
46
46
case 'tiled_article_page' :
47
- return < ArticleTilesForm edit = { articleId } /> ;
47
+ return < ArticleTilesForm edit = { articleId } history = { history } /> ;
48
48
case 'bottom_tiled_page' :
49
- return < ArticleBottomTileForm edit = { articleId } /> ;
49
+ return < ArticleBottomTileForm edit = { articleId } history = { history } /> ;
50
50
default :
51
- return < ArticleForm edit = { articleId } /> ;
51
+ return < ArticleForm edit = { articleId } history = { history } /> ;
52
52
}
53
53
}
54
54
@@ -77,6 +77,7 @@ class NewArticleView extends Component {
77
77
78
78
render ( ) {
79
79
const {
80
+ history,
80
81
match : {
81
82
params : { id, articleId } ,
82
83
} ,
@@ -97,7 +98,7 @@ class NewArticleView extends Component {
97
98
) }
98
99
< LayoutName > { this . formName ( id ) } </ LayoutName >
99
100
< Row >
100
- < Container > { this . chooseRenderForm ( id , articleId ) } </ Container >
101
+ < Container > { this . chooseRenderForm ( id , articleId , history ) } </ Container >
101
102
</ Row >
102
103
</ StyledContainer >
103
104
</ WithoutHeroImg >
0 commit comments