Skip to content

Commit e5b2aa6

Browse files
committed
Fix Bug By Removing Collapse
1 parent f0811ac commit e5b2aa6

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/components/ice-cream/IceCream.tsx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import {
44
Alert,
55
Badge,
66
Box,
7-
Collapse,
87
Fab,
98
Grid,
109
Link,
@@ -212,8 +211,9 @@ export const CurrentFlavors = (props: {
212211
smallScreen
213212
);
214213
return (
215-
<Collapse key={flavor.productId} in={flavor.count > 0} timeout={300}>
214+
flavor.count > 0 && (
216215
<Grid
216+
key={flavor.productId}
217217
display={"flex"}
218218
justifyContent={"center"}
219219
sx={{ width: smallScreen ? "100%" : undefined }}
@@ -232,7 +232,7 @@ export const CurrentFlavors = (props: {
232232
</Typography>
233233
</Box>
234234
</Grid>
235-
</Collapse>
235+
)
236236
);
237237
})
238238
)}
@@ -292,8 +292,9 @@ export const LastBatch = (props: {
292292
smallScreen
293293
);
294294
return (
295-
<Collapse key={flavor.productId} in={flavor.count > 0} timeout={300}>
295+
flavor.count > 0 && (
296296
<Grid
297+
key={flavor.productId}
297298
display={"flex"}
298299
justifyContent={"center"}
299300
sx={{ width: smallScreen ? "100%" : undefined }}
@@ -312,7 +313,7 @@ export const LastBatch = (props: {
312313
</Typography>
313314
</Box>
314315
</Grid>
315-
</Collapse>
316+
)
316317
);
317318
})
318319
)}

0 commit comments

Comments
 (0)