From 864b9d65ad668462d2afeb2cea091078e565bcfe Mon Sep 17 00:00:00 2001 From: welliton gervickas Date: Sat, 9 Dec 2023 20:11:59 -0300 Subject: [PATCH] feat: code improvement --- .../components/AddressField.tsx | 8 +++++++- .../components/BridgeButton.tsx | 20 ++++++++++++++----- .../components/CrosschainNFTBridge.tsx | 5 +++-- .../components/Requirements.tsx | 19 +++++++----------- locales/en.ts | 6 +++++- locales/pt.ts | 6 +++++- 6 files changed, 42 insertions(+), 22 deletions(-) diff --git a/app/[locale]/apps/[id]/crosschain-nft-bridge/components/AddressField.tsx b/app/[locale]/apps/[id]/crosschain-nft-bridge/components/AddressField.tsx index 7c6271c..784d1da 100644 --- a/app/[locale]/apps/[id]/crosschain-nft-bridge/components/AddressField.tsx +++ b/app/[locale]/apps/[id]/crosschain-nft-bridge/components/AddressField.tsx @@ -1,13 +1,19 @@ +'use client' + import { Card } from '@/app/components' import { Heading } from '@/app/components/typography' +import { useI18n } from '@/locales/client' import classNames from 'classnames' import { useFormContext } from 'react-hook-form' export const AddressField = () => { + const t = useI18n() const { register, formState } = useFormContext() return (