diff --git a/src/pages/stake.tsx b/src/pages/stake.tsx index 2609653..4bc960d 100644 --- a/src/pages/stake.tsx +++ b/src/pages/stake.tsx @@ -1,11 +1,13 @@ import * as React from 'react' import Head from 'next/head' import { utils } from 'near-api-js' -import { Box, Text, Tabs, Tab, TextInput, Button } from 'grommet' +import { Box, Text, Tabs, Tab, Button } from 'grommet' import { NearContext } from 'src/near/nearContext' import { PledgeType, PoolStatsType } from 'src/near/types' +import { CryptoInput } from 'src/components/CryptoInput' + const Stake: React.FC = () => { const { contract, currentUser } = React.useContext(NearContext) const [depositAmnt, setDepositAmnt] = React.useState(null) @@ -27,7 +29,7 @@ const Stake: React.FC = () => { React.useEffect(() => { getNewPledgedAmnt() getStats() - }, [contract]) + }, [contract, getNewPledgedAmnt, getStats]) return ( <> @@ -68,36 +70,15 @@ const Stake: React.FC = () => {
- - { - setDepositAmnt(e?.target?.value) - }} - /> - - Near - - +