From 6b95451c4198e876628c88f8e889e779626b287c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guillaume=20Dieudonn=C3=A9?= <8122069+GuiDieudo@users.noreply.github.com> Date: Sat, 26 Nov 2022 19:12:17 +0100 Subject: [PATCH] feat: fixing error when selected winners --- .../dapp/src/views/GameCreation/components/Steps.tsx | 12 ++++++------ .../steps/GameConfirmationAndContractCreation.tsx | 4 ++-- .../GameCreation/components/steps/GameCreation.tsx | 4 ++-- .../views/GameCreation/components/steps/GameName.tsx | 2 +- .../components/steps/PrizepoolConfiguration.tsx | 4 ++-- 5 files changed, 13 insertions(+), 13 deletions(-) diff --git a/packages/dapp/src/views/GameCreation/components/Steps.tsx b/packages/dapp/src/views/GameCreation/components/Steps.tsx index b02c51c..8547096 100644 --- a/packages/dapp/src/views/GameCreation/components/Steps.tsx +++ b/packages/dapp/src/views/GameCreation/components/Steps.tsx @@ -1,12 +1,12 @@ import { useTranslation } from '@pancakeswap/localization' import { useWeb3React } from '@pancakeswap/wagmi' import { useGameContext } from 'views/GameCreation/hooks/useGameContext' -import GameCreation from 'views/GameCreation/components/Steps/GameCreation' -import NoWalletConnected from 'views/GameCreation/components/Steps/WalletNotConnected' -import PrizepoolConfiguration from 'views/GameCreation/components/Steps/PrizepoolConfiguration' -import Confirmation from 'views/GameCreation/components/Steps/Confirmation' -import GameName from 'views/GameCreation/components/Steps/GameName' -import GameConfirmationAndContractCreation from 'views/GameCreation/components/Steps/GameConfirmationAndContractCreation' +import GameCreation from 'views/GameCreation/components/steps/GameCreation' +import NoWalletConnected from 'views/GameCreation/components/steps/WalletNotConnected' +import PrizepoolConfiguration from 'views/GameCreation/components/steps/PrizepoolConfiguration' +import Confirmation from 'views/GameCreation/components/steps/Confirmation' +import GameName from 'views/GameCreation/components/steps/GameName' +import GameConfirmationAndContractCreation from 'views/GameCreation/components/steps/GameConfirmationAndContractCreation' const Steps = () => { const { t } = useTranslation() diff --git a/packages/dapp/src/views/GameCreation/components/steps/GameConfirmationAndContractCreation.tsx b/packages/dapp/src/views/GameCreation/components/steps/GameConfirmationAndContractCreation.tsx index feedaf2..6609b17 100644 --- a/packages/dapp/src/views/GameCreation/components/steps/GameConfirmationAndContractCreation.tsx +++ b/packages/dapp/src/views/GameCreation/components/steps/GameConfirmationAndContractCreation.tsx @@ -11,8 +11,8 @@ import moment from 'moment' import momentTz from 'moment-timezone' import useActiveWeb3React from 'hooks/useActiveWeb3React' -import BackStepButton from 'views/GameCreation/components/Buttons/BackStepButton' -import CreateGameButton from 'views/GameCreation/components/Buttons/CreateGameButton' +import BackStepButton from 'views/GameCreation/components/buttons/BackStepButton' +import CreateGameButton from 'views/GameCreation/components/buttons/CreateGameButton' const BulletList = styled.ul` list-style-type: none; diff --git a/packages/dapp/src/views/GameCreation/components/steps/GameCreation.tsx b/packages/dapp/src/views/GameCreation/components/steps/GameCreation.tsx index 0996123..c2d1aab 100644 --- a/packages/dapp/src/views/GameCreation/components/steps/GameCreation.tsx +++ b/packages/dapp/src/views/GameCreation/components/steps/GameCreation.tsx @@ -12,8 +12,8 @@ import { parseEther } from '@ethersproject/units' import useActiveWeb3React from 'hooks/useActiveWeb3React' import { isValidCron } from 'cron-validator' import Tooltip from 'views/Games/components/GameCardButtons/Tooltip' -import NextStepButton from 'views/GameCreation/components/Buttons/NextStepButton' -import BackStepButton from 'views/GameCreation/components/Buttons/BackStepButton' +import NextStepButton from 'views/GameCreation/components/buttons/NextStepButton' +import BackStepButton from 'views/GameCreation/components/buttons/BackStepButton' const InputWrap = styled.div` position: relative; diff --git a/packages/dapp/src/views/GameCreation/components/steps/GameName.tsx b/packages/dapp/src/views/GameCreation/components/steps/GameName.tsx index 40682e0..c7724f2 100644 --- a/packages/dapp/src/views/GameCreation/components/steps/GameName.tsx +++ b/packages/dapp/src/views/GameCreation/components/steps/GameName.tsx @@ -18,7 +18,7 @@ import styled from 'styled-components' import { useGameContext } from 'views/GameCreation/hooks/useGameContext' import useActiveWeb3React from 'hooks/useActiveWeb3React' -import NextStepButton from 'views/GameCreation/components/Buttons/NextStepButton' +import NextStepButton from 'views/GameCreation/components/buttons/NextStepButton' const InputWrap = styled.div` position: relative; diff --git a/packages/dapp/src/views/GameCreation/components/steps/PrizepoolConfiguration.tsx b/packages/dapp/src/views/GameCreation/components/steps/PrizepoolConfiguration.tsx index 3c21275..e1c3ef8 100644 --- a/packages/dapp/src/views/GameCreation/components/steps/PrizepoolConfiguration.tsx +++ b/packages/dapp/src/views/GameCreation/components/steps/PrizepoolConfiguration.tsx @@ -3,9 +3,9 @@ import { RowBetween } from 'components/Layout/Row' import { useTranslation } from '@pancakeswap/localization' import { useGameContext } from 'views/GameCreation/hooks/useGameContext' import { range } from 'utils' -import NextStepButton from 'views/GameCreation/components/Buttons/NextStepButton' +import NextStepButton from 'views/GameCreation/components/buttons/NextStepButton' import SelectionCard from 'views/GameCreation/components/SelectionCard' -import BackStepButton from 'views/GameCreation/components/Buttons/BackStepButton' +import BackStepButton from 'views/GameCreation/components/buttons/BackStepButton' import imageTest from '../../../../../public/images/chains/1.png' const AllowedPlayersToWinSelection = () => {