File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
src/features/LeaderSchedule/Slots Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -106,14 +106,12 @@ function SlotColumn({ slot, currentSlot }: SlotCardGridProps) {
106106 </ Text >
107107 { new Array ( 4 ) . fill ( 0 ) . map ( ( _ , i ) => {
108108 const cardSlot = slot + i ;
109- const isActive = cardSlot === currentSlot ;
110- const isCurrent = slot === currentSlot ;
109+ const isCurrent = cardSlot === currentSlot ;
111110
112111 return (
113112 < SlotText
114113 key = { cardSlot }
115114 slot = { cardSlot }
116- isActive = { isActive }
117115 isCurrent = { isCurrent }
118116 isWideScreen = { isWideScreen }
119117 />
@@ -125,13 +123,11 @@ function SlotColumn({ slot, currentSlot }: SlotCardGridProps) {
125123
126124interface SlotTextProps {
127125 slot : number ;
128- isActive : boolean ;
129126 isCurrent : boolean ;
130127}
131128
132129function SlotText ( {
133130 slot,
134- isActive,
135131 isCurrent,
136132 isWideScreen,
137133} : SlotTextProps & { isWideScreen : boolean } ) {
@@ -140,7 +136,7 @@ function SlotText({
140136 return (
141137 < Flex
142138 className = { clsx ( styles . rowText , {
143- [ styles . active ] : isActive ,
139+ [ styles . active ] : isCurrent ,
144140 [ styles . narrowScreen ] : ! isWideScreen ,
145141 } ) }
146142 align = "center"
You can’t perform that action at this time.
0 commit comments