@@ -34,32 +34,32 @@ const programIcon = tv({
34
34
] ,
35
35
variants : {
36
36
icon : {
37
- new : 'bg-orange-500 dark:bg-orange-300' ,
38
37
revival : 'bg-blue-500 dark:bg-blue-300' ,
38
+ new : 'bg-orange-500 dark:bg-orange-300' ,
39
39
last : 'bg-red-500 dark:bg-red-300' ,
40
40
} ,
41
41
} ,
42
42
} )
43
43
44
- type ProgramIconsProps = {
44
+ export type ProgramIconsProps = {
45
45
icon : Partial < EPGv2Program [ 'icon' ] >
46
46
}
47
47
48
- const ProgramIcons : React . FC < ProgramIconsProps > = ( { icon } ) => {
48
+ export const ProgramIcons : React . FC < ProgramIconsProps > = ( { icon } ) => {
49
49
return (
50
50
< >
51
- { icon . new && (
52
- < span className = { programIcon ( { icon : 'new' } ) } title = "新番組" >
53
- 新
54
- </ span >
55
- ) }
56
-
57
51
{ icon . revival && (
58
52
< span className = { programIcon ( { icon : 'revival' } ) } title = "再放送" >
59
53
再
60
54
</ span >
61
55
) }
62
56
57
+ { icon . new && (
58
+ < span className = { programIcon ( { icon : 'new' } ) } title = "新番組" >
59
+ 新
60
+ </ span >
61
+ ) }
62
+
63
63
{ icon . last && (
64
64
< span className = { programIcon ( { icon : 'last' } ) } title = "最終回" >
65
65
終
@@ -69,12 +69,12 @@ const ProgramIcons: React.FC<ProgramIconsProps> = ({ icon }) => {
69
69
)
70
70
}
71
71
72
- type ProgramContentProps = {
72
+ export type ProgramContentProps = {
73
73
program : EPGProgram
74
74
bgColor : [ light : string , dark : string ]
75
75
}
76
76
77
- const ProgramContent : React . FC < ProgramContentProps > = ( {
77
+ export const ProgramContent : React . FC < ProgramContentProps > = ( {
78
78
program,
79
79
bgColor,
80
80
} ) => {
@@ -150,12 +150,12 @@ const ProgramContent: React.FC<ProgramContentProps> = ({
150
150
)
151
151
}
152
152
153
- type ProgramPopoverProps = {
153
+ export type ProgramPopoverProps = {
154
154
tverChId : EPGContent [ 'tverChId' ]
155
155
program : EPGProgram
156
156
}
157
157
158
- const ProgramPopover : React . FC < ProgramPopoverProps > = ( {
158
+ export const ProgramPopover : React . FC < ProgramPopoverProps > = ( {
159
159
tverChId,
160
160
program,
161
161
} ) => {
@@ -170,8 +170,8 @@ const ProgramPopover: React.FC<ProgramPopoverProps> = ({
170
170
const id = `${ tverToJikkyoChId ( tverChId ) } :${ startAt } -${ endAt } `
171
171
172
172
const slotTitle = [
173
- icon . new && '🈟' ,
174
173
icon . revival && '🈞' ,
174
+ icon . new && '🈟' ,
175
175
icon . last && '🈡' ,
176
176
177
177
normalize ( description ) . includes ( normalize ( title ) )
0 commit comments