Skip to content

Commit

Permalink
Fix single cup title
Browse files Browse the repository at this point in the history
  • Loading branch information
mazhutoanton committed Jan 18, 2024
1 parent 19c5307 commit 769ea89
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 7 additions & 2 deletions packages/ui/src/widgets/Leaderboard/SingleCup.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
import styled from '@emotion/styled';

import { Button, PlayAgainButton, Typography } from '../../components';
import { TwitterIcon } from '../../icons';
import { useConfigContext } from '../../hooks';
import { TournamentImagesType } from './Leaderboard';

type SingleCupProps = {
tournamentTitle: string;
tournamentSubtitle: string;
handleOpenGamePortal: () => void;
handleShareClick: () => void;
onPlayAgain: () => void;
Expand Down Expand Up @@ -107,6 +110,8 @@ const Image = styled.img({
});

export const SingleCup = ({
tournamentTitle,
tournamentSubtitle,
handleOpenGamePortal,
handleShareClick,
onPlayAgain,
Expand All @@ -119,8 +124,8 @@ export const SingleCup = ({
<Container>
<DaysLeft>{daysLeft}</DaysLeft>
<div>
<SubTitle>Weekly tournament</SubTitle>
<Title>Let’s win & get a prize</Title>
<SubTitle>{tournamentSubtitle}</SubTitle>
<Title>{tournamentTitle}</Title>
<Buttons>
<PlayAgainButton onPlayAgain={onPlayAgain} tournament={false} playAgainText="Play Again" />
<CereTweetButton icon={<TwitterIcon color="#FFF" />} variant="outlined" onClick={handleShareClick}>
Expand Down
2 changes: 2 additions & 0 deletions packages/ui/src/widgets/Leaderboard/TopWidget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,8 @@ export const TopWidget = ({
<Content>
{tournamentImages?.length === 0 || mainImage ? (
<SingleCup
tournamentSubtitle={tournamentSubtitle}
tournamentTitle={tournamentTitle}
handleOpenGamePortal={handleOpenGamePortal}
handleShareClick={handleShareClick}
onPlayAgain={onPlayAgain}
Expand Down

0 comments on commit 769ea89

Please sign in to comment.