Skip to content

Commit

Permalink
Presentation: add flash icon to sponsor
Browse files Browse the repository at this point in the history
  • Loading branch information
olegsvs committed Dec 17, 2024
1 parent 1734203 commit 6adaed4
Showing 1 changed file with 28 additions and 10 deletions.
38 changes: 28 additions & 10 deletions src/pages/presentation/Closing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import PlayerOrange from 'assets/map/PlayerOrange.webp'
import PlayerPurple from 'assets/map/PlayerPurple.webp'
import PlayerYellow from 'assets/map/PlayerYellow.webp'
import PlayerBiege from 'assets/map/PlayerBiege.webp'
import FlashIcon from 'assets/icons/flash.svg?react'

type Props = {
players: Player[]
Expand Down Expand Up @@ -204,16 +205,33 @@ export default function Closing({ players, sponsors }: Props) {
>
{sponsorsSection.title}
</Box>
{sponsorsSection.content.map((content, index) => (
<Box
fontSize="24px"
key={index}
textAlign="center"
marginTop="20px"
>
{content}
</Box>
))}
{sponsorsSection.content.map((content, index) => {
if (content.toLowerCase() === 'юзя') {
return (
<Box
fontSize="24px"
key={index}
textAlign="center"
marginTop="20px"
display={'block'}
>
<FlashIcon style={{ alignSelf: 'center' }} />
{content}
</Box>
)
}

return (
<Box
fontSize="24px"
key={index}
textAlign="center"
marginTop="20px"
>
{content}
</Box>
)
})}
</Box>

<Box marginBottom="150px">
Expand Down

0 comments on commit 6adaed4

Please sign in to comment.