Skip to content

Commit 34eb5f0

Browse files
fix leader schedule loading indicator
1 parent 85ca346 commit 34eb5f0

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/features/LeaderSchedule/Slots/SlotCardGrid.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff 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

126124
interface SlotTextProps {
127125
slot: number;
128-
isActive: boolean;
129126
isCurrent: boolean;
130127
}
131128

132129
function 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"

0 commit comments

Comments
 (0)