File tree Expand file tree Collapse file tree 2 files changed +15
-14
lines changed Expand file tree Collapse file tree 2 files changed +15
-14
lines changed Original file line number Diff line number Diff line change 9
9
TropyIcon
10
10
} from '../../icons' ;
11
11
import { useTheme } from '../../theme' ;
12
+ import { Carousel } from '../Carousel' ;
12
13
import { Pattern } from '../CustomCatalog/CustomCard' ;
13
14
import { ErrorBoundary } from '../ErrorBoundary' ;
14
15
import { StateCardSekeleton } from './PerformersToogleButton' ;
@@ -284,6 +285,17 @@ const PerformersSection: React.FC<PerformersSectionProps> = ({
284
285
</ MainContainer >
285
286
) ;
286
287
288
+ const statComponents = stats . map ( ( stat , index ) => (
289
+ < StatCard
290
+ key = { `${ stat . id } -${ index } ` }
291
+ { ...stat }
292
+ onCardClick = { onCardClick }
293
+ onIconClick = { onIconClick }
294
+ onAuthorClick = { onAuthorClick }
295
+ onStatusClick = { onStatusClick }
296
+ />
297
+ ) ) ;
298
+
287
299
return (
288
300
< ErrorBoundary >
289
301
< MainContainer >
@@ -299,17 +311,7 @@ const PerformersSection: React.FC<PerformersSectionProps> = ({
299
311
</ Title >
300
312
< CardsContainer >
301
313
{ isLoading && < StateCardSekeleton /> }
302
- { ! isLoading &&
303
- stats . map ( ( stat , index ) => (
304
- < StatCard
305
- key = { `${ stat . id } -${ index } ` }
306
- { ...stat }
307
- onCardClick = { onCardClick }
308
- onIconClick = { onIconClick }
309
- onAuthorClick = { onAuthorClick }
310
- onStatusClick = { onStatusClick }
311
- />
312
- ) ) }
314
+ < Carousel items = { statComponents } />
313
315
</ CardsContainer >
314
316
</ MainContainer >
315
317
</ ErrorBoundary >
Original file line number Diff line number Diff line change @@ -222,10 +222,9 @@ export const UserNameText = styled(Typography)(({ theme }) => ({
222
222
223
223
export const CardsContainer = styled ( Box ) ( ( { theme } ) => ( {
224
224
display : 'flex' ,
225
- gap : '18px ' ,
225
+ gap : '15px ' ,
226
226
width : '100%' ,
227
- overflowX : 'auto' ,
228
- padding : '18px' ,
227
+ padding : '20px' ,
229
228
background :
230
229
theme . palette . mode === 'light'
231
230
? theme . palette . background . default
You can’t perform that action at this time.
0 commit comments