-
+
+
+
{showMenu && (
{
@@ -180,17 +144,6 @@ const MenuLinks = () => {
}}
className="absolute left-0 z-10 w-48 origin-top-right bg-black p-0 font-medium uppercase text-white no-underline shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none"
>
-
-
- cashout
-
- BETA
-
-
-
{
)}
-
+
+
+
{showMenu && (
-
-
- cashout
-
- BETA
-
-
-
{
)}
+ >
+ )
+}
-
+const MenuLinks = () => {
+ const { open: web3modalOpen } = useWeb3Modal()
+ const { address, isConnected } = useAccount()
+ const router = useRouter()
+
+ const handleClick = (e: React.MouseEvent
) => {
+ // Prevent the default behavior of the link
+ e.preventDefault()
+ // Force a reload of the current route
+ if (window?.location.pathname == '/send') window?.location.reload()
+ else router.push('/send')
+ }
+
+ return (
+
+
+ send
+
+
+
+ request
+
+
+ BETA
+
+
+
+ cashout
+
+ BETA
+
+
+
+
docs
-
+
-
- Profile
-
-
+
+
+ Profile
+
+
+
+
+
)
}
diff --git a/src/styles/theme.ts b/src/styles/theme.ts
index eb1c45f7..4019efb3 100644
--- a/src/styles/theme.ts
+++ b/src/styles/theme.ts
@@ -5,7 +5,18 @@ const config = {
initialColorMode: 'light' as 'light',
useSystemColorMode: false,
}
-const breakpoints = {
+/**
+ * Breakpoints for responsive design.
+ *
+ * The breakpoints are defined in em units and their equivalent in pixels are:
+ * - xs: 22em (352px)
+ * - sm: 30em (480px)
+ * - md: 48em (768px)
+ * - lg: 62em (992px)
+ * - xl: 80em (1280px)
+ * - 2xl: 96em (1536px)
+ */
+export const breakpoints = {
xs: '22em',
sm: '30em',
md: '48em',
@@ -14,6 +25,8 @@ const breakpoints = {
'2xl': '96em',
}
+export const emToPx = (em: string) => parseFloat(em) * 16
+
export const theme = extendTheme({
breakpoints,
config,