Skip to content

Commit

Permalink
chore: run format and linter tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
0xdcota committed Mar 6, 2024
1 parent 34ff16b commit 9c17ba8
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/nextjs/components/index/data.js
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
5 changes: 2 additions & 3 deletions packages/nextjs/components/index/hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<bigint>(0n);
Expand Down Expand Up @@ -67,7 +66,7 @@ const Hero = () => {
});

const handleBuyXocModal = () => {
if(account.isDisconnected) {
if (account.isDisconnected) {
// open rainbow kit connect wallet modal
openConnectModal?.();
} else {
Expand Down
3 changes: 2 additions & 1 deletion packages/nextjs/components/index/testimonials.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ const Testimonials = () => {
<div className="">
<div className="flex flex-col justify-between w-full h-full bg-base-300 px-14 rounded-2xl py-14 dark:bg-trueGray-800">
<p className="text-2xl leading-normal text-inherit dark:text-inherit">
$XOC <Mark>simplifica</Mark> mis transacciones. Empoderamiento financiero y acceso a DeFi. ¡Gracias por la revolución!
$XOC <Mark>simplifica</Mark> mis transacciones. Empoderamiento financiero y acceso a DeFi. ¡Gracias por la
revolución!
</p>

<Avatar image={userThreeImg} name="Gabriel Guzman" title="Co-Founder de Mercado Libre" />
Expand Down
14 changes: 13 additions & 1 deletion packages/nextjs/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
}

0 comments on commit 9c17ba8

Please sign in to comment.