Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
LeadOneAndFourSlice,
LeadTwoNoPicAndTwoSlice,
PuzzleSlice,
SecondaryOneAndFourSlice,
SecondaryOneSlice,
SecondaryFourSlice,
SecondaryTwoNoPicAndTwoSlice,
SecondaryOneAndColumnistSlice,
SecondaryTwoAndTwoSlice,
StandardSlice,
ListTwoAndSixNoPicSlice
} from "../src/slices";
const slices = [
{
mock: mockCommentLeadAndCartoonSlice(),
name: "comment lead and cartoon",
Slice: CommentLeadAndCartoonSlice
},
{
mock: mockDailyRegisterSlice(),
name: "daily universal register",
Slice: DailyRegisterLeadFourSlice
},
{
mock: mockLeadOneAndOneSlice(),
name: "lead one and one",
Slice: LeadOneAndOneSlice
},
{
mock: mockLeadOneFullWidthSlice(),
name: "lead one full width",
mock: mockSecondaryTwoNoPicAndTwoSlice(),
name: "secondary two no pic and two",
Slice: SecondaryTwoNoPicAndTwoSlice
},
{
mock: mockListTwoAndSixNoPicSlice(),
name: "list two and six no pic",
Slice: ListTwoAndSixNoPicSlice
},
{
mock: mockLeadersSlice(),
name: "leaders",
Slice: LeadersSlice
},
{
mock: mockCommentLeadAndCartoonSlice(),
name: "Comment lead and cartoon",
Slice: CommentLeadAndCartoonSlice
},
{
mock: { puzzles: getPuzzleSlices(3) },
name: "puzzle",
Slice: PuzzleSlice
}
];
const slicesWithPubLogo = [
{
mock: mockSecondaryOneAndFourSlice(),
name: "secondary one and four",
Slice: SecondaryOneAndFourSlice
},
"Secondary Two No Pic And Two (Mobile: B,B,G,G - Tablet: AE,AE,G,G, Wide Tablet/Desktop: AE,AE,AP,AP)",
Slice: SecondaryTwoNoPicAndTwoSlice
},
{
mock: mockListTwoAndSixNoPicSlice(),
name:
"List Two And Six No Pic (Mobile: : C,C,L,L,L,L,L,L, Tablet: AQ,AQ,L,L,L,L,L,L, Wide Tablet: C,C,L,L,L,L,L,L)",
Slice: ListTwoAndSixNoPicSlice
},
{
mock: mockLeadersSlice(),
name: "Leaders (Mobile: M,M,M,M, Tablet: AG,AG,AG,AG)",
Slice: LeadersSlice
},
{
mock: mockCommentLeadAndCartoonSlice(),
name: "Comment Lead And Cartoon (Mobile: P,Q, Tablet: AH, AI)",
Slice: CommentLeadAndCartoonSlice
}
];
export default {
children: sliceStories.map(({ mock, name, Slice }) => ({
component: renderSlice(Slice, mock),
name,
type: "story"
})),
name: "Composed/Edition/Slices"
};