From 9c17ba80ea2b94dbb43cb8b18756caa697f8ae0d Mon Sep 17 00:00:00 2001 From: dcota <32775237+DaigaroCota@users.noreply.github.com> Date: Tue, 5 Mar 2024 21:00:15 -0800 Subject: [PATCH] chore: run format and linter tasks --- packages/nextjs/components/index/data.js | 2 +- packages/nextjs/components/index/hero.tsx | 5 ++--- packages/nextjs/components/index/testimonials.js | 3 ++- packages/nextjs/tsconfig.json | 14 +++++++++++++- 4 files changed, 18 insertions(+), 6 deletions(-) diff --git a/packages/nextjs/components/index/data.js b/packages/nextjs/components/index/data.js index 054ee61..be02385 100644 --- a/packages/nextjs/components/index/data.js +++ b/packages/nextjs/components/index/data.js @@ -1,5 +1,5 @@ -import benefitOneImg from "../../public/warrior.png"; import benefitTwoImg from "../../public/benefit-two.png"; +import benefitOneImg from "../../public/warrior.png"; import { AdjustmentsHorizontalIcon, ChartBarSquareIcon, diff --git a/packages/nextjs/components/index/hero.tsx b/packages/nextjs/components/index/hero.tsx index 79327c5..a4a4d76 100644 --- a/packages/nextjs/components/index/hero.tsx +++ b/packages/nextjs/components/index/hero.tsx @@ -6,15 +6,14 @@ import Container from "./container"; import MXNFetch from "./mxnFetch"; import ProtocolNumbers from "./protocolNumbers"; import XOCMinted from "./xocMinted"; -import { formatEther, parseEther } from "viem"; import { useConnectModal } from "@rainbow-me/rainbowkit"; +import { formatEther, parseEther } from "viem"; import { useAccount } from "wagmi"; import { useContractRead, useContractWrite } from "wagmi"; import { swapRouterABI } from "~~/components/index/abis/uniabis"; import { ADDR_LIB, XOC_ADDRESS } from "~~/utils/constants"; import { FEE_BIPS, encodePath } from "~~/utils/scaffold-eth"; - const Hero = () => { const account = useAccount(); const [expectedAmountIn, setExpectedAmountIn] = useState(0n); @@ -67,7 +66,7 @@ const Hero = () => { }); const handleBuyXocModal = () => { - if(account.isDisconnected) { + if (account.isDisconnected) { // open rainbow kit connect wallet modal openConnectModal?.(); } else { diff --git a/packages/nextjs/components/index/testimonials.js b/packages/nextjs/components/index/testimonials.js index ef97cb0..1521acc 100644 --- a/packages/nextjs/components/index/testimonials.js +++ b/packages/nextjs/components/index/testimonials.js @@ -31,7 +31,8 @@ const Testimonials = () => {

- $XOC simplifica mis transacciones. Empoderamiento financiero y acceso a DeFi. ¡Gracias por la revolución! + $XOC simplifica mis transacciones. Empoderamiento financiero y acceso a DeFi. ¡Gracias por la + revolución!

diff --git a/packages/nextjs/tsconfig.json b/packages/nextjs/tsconfig.json index 6056e8f..125f544 100644 --- a/packages/nextjs/tsconfig.json +++ b/packages/nextjs/tsconfig.json @@ -18,6 +18,18 @@ "~~/*": ["./*"] } }, - "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", "components/index/benefits.js", "components/index/container.js", "components/index/data.js", "components/index/sectionTitle.js", "components/index/testimonials.jsx", "components/index/hero.js", "components/index/testimonials.js", "components/index/video.js"], + "include": [ + "next-env.d.ts", + "**/*.ts", + "**/*.tsx", + "components/index/benefits.js", + "components/index/container.js", + "components/index/data.js", + "components/index/sectionTitle.js", + "components/index/testimonials.jsx", + "components/index/hero.js", + "components/index/testimonials.js", + "components/index/video.js" + ], "exclude": ["node_modules"] }