File tree Expand file tree Collapse file tree
dotcom-rendering/src/layouts Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,14 +25,16 @@ export default meta;
2525
2626type Story = StoryObj < typeof meta > ;
2727
28+ const format = {
29+ theme : ArticleSpecial . Labs ,
30+ design : ArticleDesign . HostedArticle ,
31+ display : ArticleDisplay . Standard ,
32+ } ;
33+
2834export const Apps = {
2935 args : {
3036 content : enhanceArticleType ( hostedArticle , 'Apps' ) ,
31- format : {
32- theme : ArticleSpecial . Labs ,
33- design : ArticleDesign . HostedArticle ,
34- display : ArticleDisplay . Standard ,
35- } ,
37+ format,
3638 renderingTarget : 'Apps' ,
3739 } ,
3840 parameters : {
@@ -45,11 +47,7 @@ export const Apps = {
4547export const Web = {
4648 args : {
4749 content : enhanceArticleType ( hostedArticle , 'Web' ) ,
48- format : {
49- theme : ArticleSpecial . Labs ,
50- design : ArticleDesign . HostedArticle ,
51- display : ArticleDisplay . Standard ,
52- } ,
50+ format,
5351 renderingTarget : 'Web' ,
5452 } ,
5553 parameters : {
Original file line number Diff line number Diff line change @@ -25,14 +25,16 @@ export default meta;
2525
2626type Story = StoryObj < typeof meta > ;
2727
28+ const format = {
29+ theme : ArticleSpecial . Labs ,
30+ design : ArticleDesign . HostedGallery ,
31+ display : ArticleDisplay . Standard ,
32+ } ;
33+
2834export const Apps = {
2935 args : {
3036 content : enhanceArticleType ( hostedGallery , 'Apps' ) ,
31- format : {
32- theme : ArticleSpecial . Labs ,
33- design : ArticleDesign . HostedArticle ,
34- display : ArticleDisplay . Standard ,
35- } ,
37+ format,
3638 renderingTarget : 'Apps' ,
3739 } ,
3840 parameters : {
@@ -45,11 +47,7 @@ export const Apps = {
4547export const Web = {
4648 args : {
4749 content : enhanceArticleType ( hostedGallery , 'Web' ) ,
48- format : {
49- theme : ArticleSpecial . Labs ,
50- design : ArticleDesign . HostedArticle ,
51- display : ArticleDisplay . Standard ,
52- } ,
50+ format,
5351 renderingTarget : 'Web' ,
5452 } ,
5553 parameters : {
You can’t perform that action at this time.
0 commit comments