File tree Expand file tree Collapse file tree 4 files changed +188
-178
lines changed
Expand file tree Collapse file tree 4 files changed +188
-178
lines changed Original file line number Diff line number Diff line change @@ -275,7 +275,6 @@ export const matchReport: MatchReportType = {
275275 corners : 10 ,
276276 fouls : 4 ,
277277 colours : '#01009a' ,
278- // colours: '#fff', // #fef502
279278 crest : 'https://sport.guim.co.uk/football/crests/120/7699.png' ,
280279 } ,
281280 awayTeam : {
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