Skip to content

Commit 9b13e14

Browse files
committed
Update
Signed-off-by: vr-varad <[email protected]>
1 parent ffcd816 commit 9b13e14

File tree

1 file changed

+17
-10
lines changed

1 file changed

+17
-10
lines changed

src/custom/PerformersSection/PerformersSection.tsx

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { useMediaQuery, useTheme } from '../../theme';
77
import { Carousel } from '../Carousel';
88
import { Pattern } from '../CustomCatalog/CustomCard';
99
import { ErrorBoundary } from '../ErrorBoundary';
10-
import { OpenLeaderBoardButton, StateCardSekeleton } from './PerformersToogleButton';
10+
import { StateCardSekeleton } from './PerformersToogleButton';
1111
import {
1212
CardsContainer,
1313
ContentWrapper,
@@ -273,16 +273,23 @@ const PerformersSection: React.FC<PerformersSectionProps> = ({
273273
</Box>
274274
{onOpenLeaderboard && (
275275
<div>
276-
<Button
277-
variant="contained"
278-
onClick={() => onOpenLeaderboard()}
279-
sx={{
280-
display: { xs: 'none', sm: 'inline-flex' }
281-
}}
282-
>
283-
Open Leaderboard
276+
<Button variant="contained" onClick={() => onOpenLeaderboard()}>
277+
<TropyIcon
278+
style={{
279+
height: '2rem',
280+
width: '2rem',
281+
display: smallScreen ? 'inline-flex' : 'none'
282+
}}
283+
/>
284+
<p
285+
style={{
286+
margin: 0,
287+
display: smallScreen ? 'none' : 'inline-flex'
288+
}}
289+
>
290+
Open Leaderboard
291+
</p>
284292
</Button>
285-
<OpenLeaderBoardButton handleClick={onOpenLeaderboard} />
286293
</div>
287294
)}
288295
</TitleBox>

0 commit comments

Comments
 (0)