From 122f616f337f37295c1da74d25a13460122c9163 Mon Sep 17 00:00:00 2001 From: Emanuel Palestino Date: Thu, 18 Jul 2024 11:17:57 -0600 Subject: [PATCH 1/8] Added onchange handler in liquidity dialog --- packages/frontend/app/components/LiquidityDialog.tsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/frontend/app/components/LiquidityDialog.tsx b/packages/frontend/app/components/LiquidityDialog.tsx index dc8e43c1a5..ba94d6049e 100644 --- a/packages/frontend/app/components/LiquidityDialog.tsx +++ b/packages/frontend/app/components/LiquidityDialog.tsx @@ -1,5 +1,6 @@ import { Dialog } from '@headlessui/react' import { Form } from '@remix-run/react' +import { useState } from 'react' import { XIcon } from '~/components/icons' import { Button, Input } from '~/components/ui' @@ -14,6 +15,8 @@ export const LiquidityDialog = ({ onClose, type }: LiquidityDialogProps) => { + const [amount, setAmount] = useState(0) + return (
@@ -46,6 +49,10 @@ export const LiquidityDialog = ({ name='amount' label='Amount' /> +
+

Based on the asset:

+

Amount {amount} = {amount / 100} USD

+