diff --git a/packages/contracts/diamondABI/localAddresses.json b/packages/contracts/diamondABI/localAddresses.json index 23d1141..518fc88 100644 --- a/packages/contracts/diamondABI/localAddresses.json +++ b/packages/contracts/diamondABI/localAddresses.json @@ -1 +1 @@ -{"diamondAddress":"0x8f86403A4DE0BB5791fa46B8e795C547942fE4Cf","dathleteFacetAddress":"0xf5059a5D33d5853360D16C683c16e67980206f36","challengesFacetAddress":"0x95401dc811bb5740090279Ba06cfA8fcF6113778","challengeTransferFacet":"0x998abeb3E57409262aE5b751f60747921B33613E","daoFacetAddress":"0x70e0bA845a1A0F2DA3359C97E0285013525FFC49","shopFacetAddress":"0x4826533B4897376654Bb4d4AD88B7faFD0C98528","prtcleAddress":"0xB5d592f85ab2D955c25720EbE6FF8D4d1E1Be300"} \ No newline at end of file +{"diamondAddress":"0x9d4454B023096f34B160D6B654540c56A1F81688","dathleteFacetAddress":"0x95401dc811bb5740090279Ba06cfA8fcF6113778","challengesFacetAddress":"0x998abeb3E57409262aE5b751f60747921B33613E","challengeTransferFacet":"0x70e0bA845a1A0F2DA3359C97E0285013525FFC49","daoFacetAddress":"0x4826533B4897376654Bb4d4AD88B7faFD0C98528","shopFacetAddress":"0x99bbA657f2BbC93c02D617f8bA121cB8Fc104Acf","prtcleAddress":"0xB5d592f85ab2D955c25720EbE6FF8D4d1E1Be300"} \ No newline at end of file diff --git a/packages/web/components/UI/ProgressBar.js b/packages/web/components/UI/ProgressBar.js index a00fd4f..b95ac10 100644 --- a/packages/web/components/UI/ProgressBar.js +++ b/packages/web/components/UI/ProgressBar.js @@ -6,83 +6,32 @@ import { mdiCheckBold } from '@mdi/js'; export const ProgressBar = ({ progressLabels, index }) => { return ( - - +
+
{progressLabels.map((item, itemIndex) => ( - - - - {index === itemIndex && } - {index > itemIndex && ( - +
+
+ {index > itemIndex ? ( + + ) : ( +

{item}

)} - - - - +
+
))} - - - +
+
+
); -}; - -const Container = styled.div` - /* display: flex; */ - margin-bottom: 6%; -`; - -const Row = styled.div` - display: flex; - flex-direction: row; - justify-content: space-between; -`; - -const ItemContainer = styled.div` - display: flex; - align-items: center; - flex: 1; -`; - -const DotContainer = styled.div` - display: flex; - align-items: center; - justify-content: center; -`; - -const Dot = styled.div` - width: 22px; - height: 22px; - border-radius: 20px; - background-color: white; -`; - -const DotFill = styled.div` - width: 16px; - height: 16px; - border-radius: 20px; - background-color: cyan; - position: absolute; -`; - -const Label = styled.p` - color: white; - font-size: 16px; -`; - -const IconFrame = styled(Icon)` - position: absolute; - top: -8px; - left: 0px; -`; - -const Divider = styled.div` - display: flex; - height: 2px; - width: 66.666%; - background-color: whitesmoke; - position: absolute; - top: 11px; - align-self: center; - z-index: -1; -`; +}; \ No newline at end of file diff --git a/packages/web/components/create/ChallengeTypeScreen.js b/packages/web/components/mint/ChallengeTypeScreen.js similarity index 100% rename from packages/web/components/create/ChallengeTypeScreen.js rename to packages/web/components/mint/ChallengeTypeScreen.js diff --git a/packages/web/pages/mint.js b/packages/web/pages/mint.js index 70e71e6..61b93e5 100644 --- a/packages/web/pages/mint.js +++ b/packages/web/pages/mint.js @@ -10,7 +10,7 @@ import diamondABI from '../../contracts/diamondABI/diamond.json'; import dynamic from 'next/dynamic'; import { Formik, Form, Field } from 'formik'; import Player from 'react-player'; -import ChallengeTypeScreen from '/components/create/ChallengeTypeScreen'; +import ChallengeTypeScreen from '/components/mint/ChallengeTypeScreen'; import { ProgressBar } from '/components/UI'; import { utils } from 'ethers'; import { calculateGasMargin, GAS_MARGIN } from '../utils';