diff --git a/package.json b/package.json index 397d9a1..8594c36 100644 --- a/package.json +++ b/package.json @@ -22,6 +22,7 @@ "@web3modal/wagmi": "^4.1.1", "class-variance-authority": "^0.7.0", "clsx": "^2.1.0", + "date-fns": "^3.6.0", "react": "^18.2.0", "react-dom": "^18.2.0", "react-icons": "^4.12.0", diff --git a/src/App.tsx b/src/App.tsx index 2e04bc5..1ffe180 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -9,6 +9,7 @@ import { FormattedErrors } from './features/ui/formattedErrors'; import { NoErrorDisplay } from './features/ui/noErrorDisplay'; import { JsonDataDisplay } from './features/ui/jsonDataDisplay'; import { useSetChainId } from './hooks/useSetChainId'; +import { autoResizeTextarea } from './utils/autoResizeTextarea'; function App() { const [orderText, setOrderText] = useState(undefined); @@ -63,6 +64,9 @@ function App() { null; } + const jsonTextarea = document.getElementById('jsonTextarea'); + autoResizeTextarea(jsonTextarea as HTMLTextAreaElement); + if (protocolFee?.status === 'success') { protocolFeeFormatted = Number(protocolFee.result); } @@ -110,14 +114,15 @@ function App() { return (
-
+

Inspect an order