diff --git a/src/components/Trilemma/Triangle.tsx b/src/components/Trilemma/Triangle.tsx
index a2b7c39809e..d0480fbeaf7 100644
--- a/src/components/Trilemma/Triangle.tsx
+++ b/src/components/Trilemma/Triangle.tsx
@@ -1,6 +1,5 @@
-import { ReactNode } from "react"
import { useTranslation } from "next-i18next"
-import { chakra, HTMLChakraProps } from "@chakra-ui/react"
+import { chakra, forwardRef, HTMLChakraProps } from "@chakra-ui/react"
import { HandleClickParam } from "./useTrilemma"
@@ -35,19 +34,18 @@ export const TriangleSVG = ({
/>
)
- const CircleSelect = ({ children, onClick }) => (
+ const CircleSelect = forwardRef((props, ref) => (
- {children}
-
- )
+ {...props}
+ />
+ ))
const FillCircle = ({ isEthereum = false, isActive, ...rest }) => {
return (
@@ -66,9 +64,8 @@ export const TriangleSVG = ({
const Text = ({
isActive,
- children,
...rest
- }: { isActive: boolean; children: ReactNode } & HTMLChakraProps<"text">) => (
+ }: { isActive: boolean } & HTMLChakraProps<"text">) => (
- {children}
-
+ />
)
const commonCircleStyles = {
@@ -117,7 +112,6 @@ export const TriangleSVG = ({
viewBox="-100 100 850 915"
fill="background.base"
width={{ base: "full", lg: "auto" }}
- my={{ base: -28, sm: -16, lg: 0 }}
mt={{ lg: 32 }}
me={{ lg: 32 }}
>
diff --git a/src/components/Trilemma/index.tsx b/src/components/Trilemma/index.tsx
index a96f08326e5..da7367ca7c8 100644
--- a/src/components/Trilemma/index.tsx
+++ b/src/components/Trilemma/index.tsx
@@ -5,13 +5,13 @@ import {
DrawerContent,
DrawerOverlay,
Flex,
+ Heading,
Hide,
- useToken,
+ Stack,
+ Text,
} from "@chakra-ui/react"
import Card from "@/components/Card"
-import OldHeading from "@/components/OldHeading"
-import Text from "@/components/OldText"
import { TriangleSVG, TriangleSVGProps } from "./Triangle"
import { useTrilemma } from "./useTrilemma"
@@ -32,55 +32,46 @@ const Trilemma = () => {
...trilemmaChecks,
}
- // TODO: Replace with direct token implementation after UI migration is completed
- const lgBp = useToken("breakpoints", "lg")
-
return (
-
-
+
{t("page-roadmap-vision-trilemma-h2")}
-
- {t("page-roadmap-vision-trilemma-p")}
- {t("page-roadmap-vision-trilemma-p-1")}
- {t("page-roadmap-vision-trilemma-p-2")}
-
- {t("page-roadmap-vision-trilemma-modal-tip")}:
-
-
-
-
+
+
+ {t("page-roadmap-vision-trilemma-p")}
+ {t("page-roadmap-vision-trilemma-p-1")}
+ {t("page-roadmap-vision-trilemma-p-2")}
+
+ {t("page-roadmap-vision-trilemma-modal-tip")}:
+
+
+
+
+
-
-
+
+