diff --git a/packages/good-design/src/core/web3/GoodIdModal.tsx b/packages/good-design/src/core/web3/GoodIdModal.tsx index 1cd5aaed..5eb1793c 100644 --- a/packages/good-design/src/core/web3/GoodIdModal.tsx +++ b/packages/good-design/src/core/web3/GoodIdModal.tsx @@ -1,5 +1,5 @@ import React, { useCallback, useEffect, useState } from "react"; -import { Box, Button, Text } from "native-base"; +import { Box, Button, Text, useBreakpointValue } from "native-base"; import { SupportedChains, useFVLink } from "@gooddollar/web3sdk-v2"; import { InterfaceBoxProps } from "native-base/lib/typescript/components/primitives/Box"; @@ -41,27 +41,57 @@ export const GoodIdDetails = ({ account }: { account: string }) => { console.log("Fv is Deleted -->", { deleted }); }, [fvId, deleteFvId]); + const direction = useBreakpointValue({ + base: "column", + lg: "row" + }); + + const fontSize = useBreakpointValue({ + base: "2xs", + lg: "sm" + }); + + const margin = useBreakpointValue({ + base: "1", + lg: "0" + }); + + const titleStyles = useBreakpointValue({ + base: { fontSize: "l", mb: "4" }, + lg: { fontSize: "xl", mb: "6" } + }); + return ( - - + <CentreBox backgroundColor="white" mt="50" padding="10" borderRadius="20"> + <Title {...titleStyles} color="main" lineHeight="36px"> {`GoodID`} - Wallet: {account} - - Face-Id: + + + Wallet: {account} + + + + Face-Id: {!fvId ? ( ) : ( - {fvId} + + {fvId} +