diff --git a/public/logo.png b/public/logo.png index ce4511a..65c06fc 100644 Binary files a/public/logo.png and b/public/logo.png differ diff --git a/src/App.tsx b/src/App.tsx index 0607dcd..51cd59c 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -98,44 +98,21 @@ const App = () => { ))} - - - - - - {selectedAccount ? ( - - ) : ( - - )} - - - - - {({ isActive }) => ( - } - style={{ borderRadius: 4 }} - /> - )} - - - - - - - - - + + + {selectedAccount ? ( + + ) : ( + + )} + + + + + ); diff --git a/src/components/TransferForm.tsx b/src/components/TransferForm.tsx index aa85900..e49c961 100644 --- a/src/components/TransferForm.tsx +++ b/src/components/TransferForm.tsx @@ -10,7 +10,7 @@ export type FormValues = { to: TNodeWithRelayChains; currency: string; address: string; - amount: string; + amount: number; useApi: boolean; }; @@ -26,7 +26,7 @@ const TransferForm: FC = ({ onSubmit, loading }) => { from: 'Encointer', to: 'Kusama', currency: 'KSM', - amount: '0.2', + amount: 0.2, address: selectedAccount? selectedAccount.address : '', useApi: false, }, @@ -36,33 +36,10 @@ const TransferForm: FC = ({ onSubmit, loading }) => { }, }); - const isNotParaToPara = - form.values.from === 'Polkadot' || - form.values.from === 'Kusama' || - form.values.to === 'Polkadot' || - form.values.to === 'Kusama'; - return (
- {!isNotParaToPara && ( - - )} - - - -