From bcbec1f3e6d6ba5a2d215dc2131778ff8d7243c5 Mon Sep 17 00:00:00 2001 From: fmtabbara Date: Sun, 12 Sep 2021 21:49:39 +0100 Subject: [PATCH] admin form style updates --- tauri-wallet/src/components/Admin.tsx | 46 +++++++++++++++------------ tauri-wallet/src/routes/admin.tsx | 0 2 files changed, 25 insertions(+), 21 deletions(-) delete mode 100644 tauri-wallet/src/routes/admin.tsx diff --git a/tauri-wallet/src/components/Admin.tsx b/tauri-wallet/src/components/Admin.tsx index b82b991b37..98aa934d45 100644 --- a/tauri-wallet/src/components/Admin.tsx +++ b/tauri-wallet/src/components/Admin.tsx @@ -1,4 +1,5 @@ import React, { useContext } from 'react' +import { useForm } from 'react-hook-form' import { Backdrop, Button, @@ -10,10 +11,9 @@ import { TextField, Theme, } from '@material-ui/core' +import { useTheme } from '@material-ui/styles' import { ClientContext } from '../context/main' import { NymCard } from '.' -import { useTheme } from '@material-ui/styles' -import { useForm } from 'react-hook-form' export const Admin: React.FC = () => { const { showAdmin, handleShowAdmin } = useContext(ClientContext) @@ -23,9 +23,9 @@ export const Admin: React.FC = () => { } return ( - + - + @@ -159,29 +159,33 @@ const AdminForm: React.FC<{ onCancel: () => void }> = ({ onCancel }) => { -
- - -
+ + + + + + + ) } diff --git a/tauri-wallet/src/routes/admin.tsx b/tauri-wallet/src/routes/admin.tsx deleted file mode 100644 index e69de29bb2..0000000000