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