From 9d699560e5481593b8ef8b3c92e51df27eea12bc Mon Sep 17 00:00:00 2001 From: Kamil Pyszkowski Date: Mon, 2 Oct 2023 13:57:53 +0200 Subject: [PATCH 01/10] Add "How It Works" button to tBTC modal --- src/components/Modal/tBTC/NewTBTCApp.tsx | 33 ++++++++++++++++-------- 1 file changed, 22 insertions(+), 11 deletions(-) diff --git a/src/components/Modal/tBTC/NewTBTCApp.tsx b/src/components/Modal/tBTC/NewTBTCApp.tsx index 98026a188..670c63b79 100644 --- a/src/components/Modal/tBTC/NewTBTCApp.tsx +++ b/src/components/Modal/tBTC/NewTBTCApp.tsx @@ -1,28 +1,30 @@ -import { FC } from "react" import { + BodyLg, + BodySm, Button, Divider, + Flex, + H5, + Image, ModalBody, ModalFooter, ModalHeader, - BodyLg, - H5, - BodySm, - Flex, - Image, } from "@threshold-network/components" -import { TakeNoteList } from "../../tBTC" -import withBaseModal from "../withBaseModal" -import tbtcAppBannerIllustration from "../../../static/images/tBTCAppBannerWithGrid.svg" +import { FC } from "react" +import { useNavigate } from "react-router-dom" import { useTBTCTerms } from "../../../hooks/useTBTCTerms" +import tbtcAppBannerIllustration from "../../../static/images/tBTCAppBannerWithGrid.svg" import { BaseModalProps } from "../../../types" +import { TakeNoteList } from "../../tBTC" +import withBaseModal from "../withBaseModal" const NewTBTCAppBase: FC = ({ closeModal }) => { const { accept } = useTBTCTerms() + const navigate = useNavigate() return ( <> - + = ({ closeModal }) => { - + + +