From 8670159ce8e3a1739291af973ffecb1a341b739f Mon Sep 17 00:00:00 2001 From: Corban Riley Date: Thu, 23 May 2024 15:39:20 -0400 Subject: [PATCH] Fixing lint errors in examples --- examples/next/src/app/components/Footer.tsx | 2 +- examples/react/src/components/Homepage.tsx | 4 ++-- examples/react/src/utils/helpers.ts | 2 -- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/examples/next/src/app/components/Footer.tsx b/examples/next/src/app/components/Footer.tsx index 889937ef..0f20b7c8 100644 --- a/examples/next/src/app/components/Footer.tsx +++ b/examples/next/src/app/components/Footer.tsx @@ -1,5 +1,5 @@ -import React from 'react' import { Box, Button, Image, Text, useMediaQuery, useTheme } from '@0xsequence/design-system' +import React from 'react' interface BottomPageLink { label: string diff --git a/examples/react/src/components/Homepage.tsx b/examples/react/src/components/Homepage.tsx index 507f1e8e..e9d47ce9 100644 --- a/examples/react/src/components/Homepage.tsx +++ b/examples/react/src/components/Homepage.tsx @@ -33,6 +33,7 @@ import { allNetworks } from '@0xsequence/network' import { ethers } from 'ethers' import { AnimatePresence } from 'framer-motion' import React, { useEffect } from 'react' +import { formatUnits, parseUnits } from 'viem' import { useDisconnect, useAccount, @@ -44,7 +45,6 @@ import { useWriteContract, useConnections } from 'wagmi' -import { formatUnits, parseUnits } from 'viem' import { ConnectionMode } from '../config' import { messageToSign } from '../constants' @@ -97,7 +97,7 @@ export const Homepage = () => { localStorage.getItem('confirmationEnabled') === 'true' ) - const [pendingFeeOptionConfirmation, confirmPendingFeeOption, rejectPendingFeeOption] = useWaasFeeOptions() + const [pendingFeeOptionConfirmation, confirmPendingFeeOption] = useWaasFeeOptions() const [selectedFeeOptionTokenName, setSelectedFeeOptionTokenName] = React.useState() diff --git a/examples/react/src/utils/helpers.ts b/examples/react/src/utils/helpers.ts index 1ce3965e..8fe98230 100644 --- a/examples/react/src/utils/helpers.ts +++ b/examples/react/src/utils/helpers.ts @@ -1,8 +1,6 @@ import { CheckoutSettings } from '@0xsequence/kit-checkout' import { Address } from 'viem' -import { ConnectionMode } from '../config' - export const truncateAtMiddle = (text: string, truncateAt: number) => { let finalText = text