diff --git a/wallet-web/components/Layout.tsx b/wallet-web/components/Layout.tsx
new file mode 100644
index 0000000000..26aea37b7d
--- /dev/null
+++ b/wallet-web/components/Layout.tsx
@@ -0,0 +1,20 @@
+import React from 'react'
+import { Grid, Theme, useTheme } from '@material-ui/core'
+
+export const Layout = ({ children }: { children: React.ReactElement }) => {
+ const theme: Theme = useTheme()
+
+ return (
+
+
+
+ {children}
+
+
+
+ )
+}
diff --git a/wallet-web/components/MainNav.tsx b/wallet-web/components/MainNav.tsx
index f545673342..e8f0828fa0 100644
--- a/wallet-web/components/MainNav.tsx
+++ b/wallet-web/components/MainNav.tsx
@@ -15,19 +15,20 @@ import {
import React, { useContext } from 'react'
import Link from 'next/link'
import VpnKeyIcon from '@material-ui/icons/VpnKey'
-import {
- ExitToApp,
- AccountBalanceWallet,
- MonetizationOn,
- AttachMoney,
- MoneyOff,
- Menu,
- HowToVote,
- Cancel,
- Pageview,
-} from '@material-ui/icons'
+import AccountBalanceWalletIcon from '@material-ui/icons/AccountBalanceWallet'
import { ValidatorClientContext } from '../contexts/ValidatorClient'
import { ADMIN_ADDRESS } from '../pages/_app'
+import {
+ Menu,
+ AttachMoney,
+ MoneyOff,
+ HowToVote,
+ Cancel,
+ ArrowForward,
+ ArrowBack,
+ ExitToApp,
+} from '@material-ui/icons'
+
import { makeBasicStyle } from '../common/helpers'
import { theme } from '../lib/theme'
@@ -53,7 +54,7 @@ export default function MainNav() {
}
return (
-
+ <>
-
+
@@ -92,13 +93,22 @@ export default function MainNav() {
-
+
+
+
+
+
+
+
+
+
+
{/**/}
@@ -132,15 +142,6 @@ export default function MainNav() {
-
-
-
-
-
-
-
-
-
@@ -158,7 +159,7 @@ export default function MainNav() {
{adminPageDisplayed && (
-
+ <>
@@ -169,7 +170,7 @@ export default function MainNav() {
-
+ >
)}
@@ -185,6 +186,6 @@ export default function MainNav() {
-
+ >
)
}
diff --git a/wallet-web/components/NymCard.tsx b/wallet-web/components/NymCard.tsx
new file mode 100644
index 0000000000..0c0112afa7
--- /dev/null
+++ b/wallet-web/components/NymCard.tsx
@@ -0,0 +1,31 @@
+import React from 'react'
+import { Card, CardContent, CardHeader, useTheme } from '@material-ui/core'
+
+export const NymCard = ({
+ title,
+ subheader,
+ children,
+}: {
+ title: string
+ subheader?: string
+ children: React.ReactElement
+}) => {
+ const theme = useTheme()
+ return (
+
+
+
+ {children}
+
+
+ )
+}
diff --git a/wallet-web/components/bond/BondNodeForm.tsx b/wallet-web/components/bond/BondNodeForm.tsx
index 2ec27987b2..c3a358a0e3 100644
--- a/wallet-web/components/bond/BondNodeForm.tsx
+++ b/wallet-web/components/bond/BondNodeForm.tsx
@@ -2,13 +2,14 @@ import React, { useEffect, useState, ChangeEvent } from 'react'
import { printableBalanceToNative } from '@nymproject/nym-validator-client/dist/currency'
import { Coin, nativeToPrintable } from '@nymproject/nym-validator-client'
import { Alert } from '@material-ui/lab'
-import Grid from '@material-ui/core/Grid'
-import TextField from '@material-ui/core/TextField'
import {
Button,
Checkbox,
FormControlLabel,
InputAdornment,
+ Grid,
+ TextField,
+ useMediaQuery,
} from '@material-ui/core'
import bs58 from 'bs58'
import semver from 'semver'
@@ -81,6 +82,8 @@ export default function BondNodeForm(props: TBondNodeFormProps) {
getBalance()
}, [getBalance])
+ const matches = useMediaQuery('(min-width:768px)')
+
const handleCheckboxToggle = () => {
setAdvancedShown((prevSet) => !prevSet)
}
@@ -310,11 +313,13 @@ export default function BondNodeForm(props: TBondNodeFormProps) {
{DENOM}
+ {DENOM}
),
}}
onChange={handleAmountChange}
@@ -343,9 +348,9 @@ export default function BondNodeForm(props: TBondNodeFormProps) {
@@ -353,9 +358,9 @@ export default function BondNodeForm(props: TBondNodeFormProps) {
}
- label='Show advanced options'
+ label="Show advanced options"
/>
@@ -427,10 +432,10 @@ export default function BondNodeForm(props: TBondNodeFormProps) {
@@ -457,10 +462,10 @@ export default function BondNodeForm(props: TBondNodeFormProps) {
@@ -470,10 +475,10 @@ export default function BondNodeForm(props: TBondNodeFormProps) {
@@ -485,9 +490,9 @@ export default function BondNodeForm(props: TBondNodeFormProps) {