File tree Expand file tree Collapse file tree 3 files changed +188
-177
lines changed
Expand file tree Collapse file tree 3 files changed +188
-177
lines changed Original file line number Diff line number Diff line change 1+ import { css } from '@emotion/react' ;
12import type { Meta , StoryObj } from '@storybook/react-webpack5' ;
23import { allModes } from '../../.storybook/modes' ;
34import { matchReport } from '../../fixtures/generated/match-report' ;
5+ import { grid } from '../grid' ;
6+ import { palette } from '../palette' ;
47import { type TeamType } from '../types/sport' ;
58import { Lineups as LineupsComponent } from './Lineups' ;
69
@@ -18,6 +21,26 @@ const meta = {
1821 } ,
1922 } ,
2023 } ,
24+ decorators : [
25+ ( Story ) => (
26+ < div
27+ css = { css `
28+ background-color : ${ palette (
29+ '--football-match-info-background' ,
30+ ) } ;
31+ ${ grid . paddedContainer }
32+ ` }
33+ >
34+ < div
35+ css = { css `
36+ ${ grid . column . centre }
37+ ` }
38+ >
39+ < Story />
40+ </ div >
41+ </ div >
42+ ) ,
43+ ] ,
2144} satisfies Meta < typeof LineupsComponent > ;
2245
2346export default meta ;
You can’t perform that action at this time.
0 commit comments