Skip to content

Commit 9e3a9dd

Browse files
committed
Update AddressHelper component
Use the custom `Link` component.
1 parent 21be3a3 commit 9e3a9dd

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

src/components/Modal/ConfirmStakingParams/AdvancedParamsForm.tsx

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,15 @@ import { FC, Ref } from "react"
22
import { FormikProps, FormikErrors, withFormik } from "formik"
33
import { Form, FormikInput } from "../../Forms"
44
import { getErrorsObj, validateETHAddress } from "../../../utils/forms"
5-
import { Alert, AlertIcon, Link, BodyXs } from "@threshold-network/components"
5+
import {
6+
Alert,
7+
AlertIcon,
8+
BodyXs,
9+
useColorModeValue,
10+
} from "@threshold-network/components"
611
import { useWeb3React } from "@web3-react/core"
712
import { isAddress, isSameETHAddress } from "../../../web3/utils"
13+
import Link from "../../Link"
814

915
export interface FormValues {
1016
stakingProvider: string
@@ -61,11 +67,11 @@ const AdvancedParamsFormBase: FC<ComponentProps & FormikProps<FormValues>> = ({
6167
}
6268

6369
const AddressHelper: FC<{ text: string }> = ({ text }) => {
70+
const textColor = useColorModeValue("gray.500", "gray.300")
71+
6472
return (
65-
<BodyXs color="gray.500">
66-
{text}{" "}
67-
{/* TODO: use the `Link` component from https://github.com/threshold-network/token-dashboard/pull/258 */}
68-
<Link>Learn more</Link>
73+
<BodyXs color={textColor}>
74+
{text} <Link to="/staking/how-it-works/overview">Learn more</Link>.
6975
</BodyXs>
7076
)
7177
}

0 commit comments

Comments
 (0)