Skip to content

Commit

Permalink
added flt allocation to claimed page
Browse files Browse the repository at this point in the history
  • Loading branch information
evgenyponomarev committed Feb 26, 2024
1 parent 841a67b commit f6f5e89
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
20 changes: 10 additions & 10 deletions web/src/pages/begin-page/begin-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const PageBegin = memo(() => {
useEffect(() => {
if (username) {
navigate(ROUTE_WALLET)
}
}
}, [username])

const [inputValid, setInputValid] = useState(true)
Expand All @@ -46,7 +46,7 @@ const PageBegin = memo(() => {
e.target.value !== '' ? setInputPressed(true) : setInputPressed(false)
setInputValid(githubUsernameRegex.test(e.target.value))
setName(e.target.value)
}
}

const getInputClassName = () => {
if (!inputValid) {
Expand All @@ -59,7 +59,7 @@ const PageBegin = memo(() => {

return styles.input
}

return (
<div className={styles.background}>
<Header />
Expand Down Expand Up @@ -102,14 +102,14 @@ const PageBegin = memo(() => {
icon="git"
text="Check if I’m eligible"
callback={() => dispatch(setUsername(name))}
/>
/>
}
</li>
<li className={styles.button}>
<span className={styles.span}>or</span>
<Url text="Get FLT on Uniswap" color="black"/>
// <span className={styles.span}>or</span>
// <Url text="Get FLT on Uniswap" color="black"/>
</li>
</ul>
</ul>
</div>
<div className={styles["flex-container__part-right"]}>
<ul className={styles.definitions}>
Expand All @@ -123,13 +123,13 @@ const PageBegin = memo(() => {
<div className={styles.url}>
<Url text="Details about the reward" color="black" />
</div>

</div>
</div>
</Dashboard>
</div>


</main>
</div>
<Footer />
Expand Down
4 changes: 3 additions & 1 deletion web/src/pages/claimed-page/claimed-page.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react';
import { useSelector } from 'react-redux';

import Header from '../../components/Header/Header';
import Title from '../../components/Title/Title';
Expand All @@ -15,6 +16,7 @@ const TwitterShareButton = TwitterShare(Button)

const ClaimedPage = () => {
const { network } = useWeb3Connection();
const { currentAward } = useSelector(state => state.distributor)

const handleAddToken = () => {
addTokenToMetamask(governanceContracts[network.name].token)
Expand Down Expand Up @@ -45,7 +47,7 @@ const ClaimedPage = () => {
type="large"
icon="twitter"
text="Share on Twitter"
caption="I just claimed 5000 FLT tokens of Fluence!"
caption={`I just claimed ${currentAward} FLT tokens of Fluence!`}
url="https://fluence.network"
/>
</li>
Expand Down

0 comments on commit f6f5e89

Please sign in to comment.