Skip to content

Commit

Permalink
Merge pull request #1917 from sportstimes/task/remove-badge-wobble-all
Browse files Browse the repository at this point in the history
Remove wobble
  • Loading branch information
ay8s authored Jan 5, 2025
2 parents 7e107ff + c8698c4 commit c980742
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/components/Race/Race.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,16 +98,18 @@ const Race = ({
<Toggle collapsed={collapsed} />
</div>
</td>
<th className={`flex p-4`} id={`${item.slug}-header`}>
<span className={`${titleRowClasses(race)} flex`}>
<span className={titleRowTextClasses(race)}>{raceTitle}</span>

{isNextRace && !item.tbc && !item.canceled && <NextBadge />}
<th
className={`flex p-4 flex justify-between lg:pr-8`}
id={`${item.slug}-header`}
>
<div className={`${titleRowClasses(race)}`}>
<div className={titleRowTextClasses(race)}>{raceTitle}</div>
</div>
{isNextRace && !item.tbc && !item.canceled && <NextBadge />}

{item.tbc && <TBCBadge />}
{item.tbc && <TBCBadge />}

{item.canceled && <CanceledBadge />}
</span>
{item.canceled && <CanceledBadge />}
</th>
{!hasMultipleFeaturedEvents ? (
<>
Expand Down Expand Up @@ -179,13 +181,11 @@ const Race = ({

keys.forEach(function (sessionKey, index) {
// Translate session title or fallback to session key




const sessionTitle =
t(`schedule.${sessionKey}`) != `All.schedule.${sessionKey}`
? t(`schedule.${sessionKey}`)
: sessionKey.replace(/./,x=>x.toUpperCase())
: sessionKey.replace(/./, (x) => x.toUpperCase());

const hasOccured = dayjs(props.item.sessions[sessionKey])
.add(2, 'hours')
Expand Down

0 comments on commit c980742

Please sign in to comment.