From ec712b33aece2d5683aac7d76938f76392263f35 Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Fri, 26 Nov 2021 11:38:45 +1100 Subject: [PATCH] Replace formatting of quantity with input addon --- taker-frontend/src/App.tsx | 7 ++---- taker-frontend/src/components/Trade.tsx | 31 ++++++++++++++----------- 2 files changed, 20 insertions(+), 18 deletions(-) diff --git a/taker-frontend/src/App.tsx b/taker-frontend/src/App.tsx index aae240e..db1803c 100644 --- a/taker-frontend/src/App.tsx +++ b/taker-frontend/src/App.tsx @@ -100,9 +100,6 @@ export const App = () => { 500, ); - const format = (val: any) => `$` + val; - const parse = (val: any) => val.replace(/^\$/, ""); - return ( <>