From f62b1037ffbee694e2ada184ecda432852e0bffd Mon Sep 17 00:00:00 2001 From: James Grugett Date: Wed, 27 Jul 2022 09:51:28 -0700 Subject: [PATCH] Remove unused vars --- web/components/amount-input.tsx | 1 - web/pages/home.tsx | 4 ---- web/pages/profile.tsx | 1 - 3 files changed, 6 deletions(-) diff --git a/web/components/amount-input.tsx b/web/components/amount-input.tsx index 367fffbb..7a1b81d5 100644 --- a/web/components/amount-input.tsx +++ b/web/components/amount-input.tsx @@ -4,7 +4,6 @@ import { useUser } from 'web/hooks/use-user' import { formatMoney } from 'common/util/format' import { Col } from './layout/col' import { Spacer } from './layout/spacer' -import { SiteLink } from './site-link' import { ENV_CONFIG } from 'common/envs/constants' export function AmountInput(props: { diff --git a/web/pages/home.tsx b/web/pages/home.tsx index 30b93762..06f60d80 100644 --- a/web/pages/home.tsx +++ b/web/pages/home.tsx @@ -1,6 +1,4 @@ import React, { useEffect, useState } from 'react' -import { useRouter } from 'next/router' -import { PlusSmIcon } from '@heroicons/react/solid' import { Page } from 'web/components/page' import { Col } from 'web/components/layout/col' @@ -10,7 +8,6 @@ import { Contract } from 'common/contract' import { ContractPageContent } from './[username]/[contractSlug]' import { getContractFromSlug } from 'web/lib/firebase/contracts' import { useTracking } from 'web/hooks/use-tracking' -import { track } from 'web/lib/service/analytics' import { redirectIfLoggedOut } from 'web/lib/firebase/server-auth' import { useSaveReferral } from 'web/hooks/use-save-referral' @@ -19,7 +16,6 @@ export const getServerSideProps = redirectIfLoggedOut('/') const Home = () => { const [contract, setContract] = useContractPage() - const router = useRouter() useTracking('view home') useSaveReferral() diff --git a/web/pages/profile.tsx b/web/pages/profile.tsx index 601d80c5..a41fa40f 100644 --- a/web/pages/profile.tsx +++ b/web/pages/profile.tsx @@ -1,7 +1,6 @@ import React, { useEffect, useState } from 'react' import { RefreshIcon } from '@heroicons/react/outline' -import { AddFundsButton } from 'web/components/add-funds-button' import { Page } from 'web/components/page' import { SEO } from 'web/components/SEO' import { Title } from 'web/components/title'