Skip to content

Commit

Permalink
fixes, link from main
Browse files Browse the repository at this point in the history
  • Loading branch information
crystalbit committed Apr 26, 2024
1 parent 9e15129 commit 59d88eb
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
13 changes: 12 additions & 1 deletion web/src/pages/begin-page/begin-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import Footer from "../../components/Footer/Footer";
import TimeUntilReduce from "../../components/TimeUntilReduce/TimeUntilReduce";

import styles from "./begin-page.module.css";
import { ROUTE_NOT_FOUND, ROUTE_WALLET } from "../../constants/routes";
import { ROUTE_CLAIM_FLT, ROUTE_NOT_FOUND, ROUTE_WALLET } from "../../constants/routes";

const PageBegin = memo(() => {
const navigate = useNavigate();
Expand Down Expand Up @@ -44,6 +44,10 @@ const PageBegin = memo(() => {
}
};

const onAlreadyHaveButtonClick = () => {
navigate(ROUTE_CLAIM_FLT);
};

const handleChangeUsername = (e) => {
const value = e.target.value.toLowerCase();
value !== "" ? setInputPressed(true) : setInputPressed(false);
Expand Down Expand Up @@ -110,6 +114,13 @@ const PageBegin = memo(() => {
callback={onEligibilityCheckButtonClick}
/>
</li>
<li className={styles.button}>
<Button
type="large"
text="I already have FLT-DROP"
callback={onAlreadyHaveButtonClick}
/>
</li>
</ul>
</div>
<div className={styles["flex-container__part-right"]}>
Expand Down
2 changes: 1 addition & 1 deletion web/src/pages/claim-flt-page/claim-flt-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export const ClaimFltPage = memo(() => {
<div className="container">
<main className={`main ${styles.main}`}>
<div className={styles.title}>
<Title type="h1" size="large" text="FLT-DROP Claim" icon="" />
<Title type="h1" size="large" text="Convert FLT-DROP to FLT" icon="" />
</div>
<div className={styles.dashboard}>
<Dashboard>
Expand Down

0 comments on commit 59d88eb

Please sign in to comment.