Skip to content

Commit

Permalink
fixup! fix: load games directly from api data
Browse files Browse the repository at this point in the history
  • Loading branch information
RasenGUY committed Dec 9, 2023
1 parent eed8410 commit 77ae1ab
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/common/modals/CoinflipLoserModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const CoinflipLoserModal = ({ gameType, winnerFlipChoice, loserFlipChoice, hide}
<RestartIcon color="#151515" tw="h-[16px] w-[16px] ms-[5px]"/>
</Button>
</Link>
<Link to={`/${gameType.toLocaleLowerCase()}/create`} tw="min-w-[197px]" state={{ gameType }}>
<Link to={`/create/${gameType.toLocaleLowerCase()}`} tw="min-w-[197px]" state={{ gameType }}>
<Button buttonType="secondary" tw="flex items-center w-full justify-center">
Start a new game
<StarLoaderIcon tw="dark:fill-blanc h-[16px] w-[16px] ms-[5px]" />
Expand Down
2 changes: 1 addition & 1 deletion src/common/modals/CoinflipWinnerModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const CoinflipWinnerModal = ({
<DownloadIcon color="#151515" tw="h-[16px] w-[16px] ms-[5px]"/>
</Button>
</Link>
<Link to={`/${gameType.toLocaleLowerCase()}/create`} tw="min-w-[197px]" state={{ gameType }}>
<Link to={`/create/${gameType.toLocaleLowerCase()}`} tw="min-w-[197px]" state={{ gameType }}>
<Button buttonType="secondary" tw="flex items-center w-full justify-center">
Start a new game
<RestartIcon tw="h-[16px] w-[16px] ms-[5px]"/>
Expand Down
2 changes: 1 addition & 1 deletion src/common/modals/DiceLoserModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const DiceLoserModal = ({
<RestartIcon color="#151515" tw="h-[16px] w-[16px] ms-[5px]"/>
</Button>
</Link>
<Link to={`/${gameType.toLocaleLowerCase()}/create`} tw="min-w-[197px]" state={{ gameType }}>
<Link to={`/create/${gameType.toLocaleLowerCase()}`} tw="min-w-[197px]" state={{ gameType }}>
<Button buttonType="secondary" tw="flex items-center w-full justify-center">
Start a new game
<StarLoaderIcon tw="dark:fill-blanc h-[16px] w-[16px] ms-[5px]" />
Expand Down

0 comments on commit 77ae1ab

Please sign in to comment.