Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New tBTC app modal refinements #630

Merged
merged 11 commits into from
Oct 30, 2023
20 changes: 15 additions & 5 deletions src/components/Modal/tBTC/NewTBTCApp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,19 @@ import {
Flex,
Image,
} from "@threshold-network/components"
import { TakeNoteList } from "../../tBTC"
import withBaseModal from "../withBaseModal"
import tbtcAppBannerIllustration from "../../../static/images/tBTCAppBannerWithGrid.svg"
import { useTBTCTerms } from "../../../hooks/useTBTCTerms"
import tbtcAppBannerIllustration from "../../../static/images/tBTCAppBannerWithGrid.svg"
import { BaseModalProps } from "../../../types"
import ButtonLink from "../../ButtonLink"
import { TakeNoteList } from "../../tBTC"
michalsmiarowski marked this conversation as resolved.
Show resolved Hide resolved
import withBaseModal from "../withBaseModal"

const NewTBTCAppBase: FC<BaseModalProps> = ({ closeModal }) => {
const { accept } = useTBTCTerms()

return (
<>
<ModalHeader></ModalHeader>
<ModalHeader />
<ModalBody>
<Image
src={tbtcAppBannerIllustration}
Expand All @@ -43,7 +44,16 @@ const NewTBTCAppBase: FC<BaseModalProps> = ({ closeModal }) => {
</BodySm>
<Divider mt="2" />
</ModalBody>
<ModalFooter>
<ModalFooter gap="4">
<ButtonLink
variant="outline"
to="/tBTC/how-it-works"
onClick={() => {
closeModal()
}}
>
How it Works
</ButtonLink>
<Button
onClick={() => {
accept()
Expand Down
2 changes: 1 addition & 1 deletion src/components/Sidebar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const Sidebar = () => {
text: "tBTC",
activeIcon: tBTCFill,
passiveIcon: tBTCOutline,
href: "/tBTC",
href: "/tBTC/how-it-works",
} as NavItemDetail)
}

Expand Down
2 changes: 1 addition & 1 deletion src/pages/tBTC/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const MainTBTCPage: PageComponent = (props) => {
MainTBTCPage.route = {
path: "tBTC",
index: false,
pages: [TBTCBridge, HowItWorksPage, ExplorerPage],
pages: [HowItWorksPage, TBTCBridge, ExplorerPage],
title: "tBTC",
isPageEnabled: featureFlags.TBTC_V2,
}
Expand Down
Loading