diff --git a/js/packages/web/src/components/ArtCard/index.tsx b/js/packages/web/src/components/ArtCard/index.tsx index 2f24b90..f3b8cbc 100644 --- a/js/packages/web/src/components/ArtCard/index.tsx +++ b/js/packages/web/src/components/ArtCard/index.tsx @@ -1,4 +1,4 @@ -import React, { useEffect, useMemo, useState } from 'react'; +import React from 'react'; import { Card, CardProps, Button, Badge } from 'antd'; import { MetadataCategory } from '@oyster/common'; import { ArtContent } from './../ArtContent'; diff --git a/js/packages/web/src/components/ArtistCard/index.tsx b/js/packages/web/src/components/ArtistCard/index.tsx index 34a0896..1282287 100644 --- a/js/packages/web/src/components/ArtistCard/index.tsx +++ b/js/packages/web/src/components/ArtistCard/index.tsx @@ -1,14 +1,13 @@ import React, { useState } from 'react' -import { Card, Avatar } from 'antd' +import { Card } from 'antd' import { Artist } from '../../types' import './index.less' -import { Identicon, shortenAddress } from '@oyster/common' +import { shortenAddress } from '@oyster/common' import { MetaAvatar } from '../MetaAvatar'; export const ArtistCard = ({artist}: {artist: Artist}) => { - const [noImage, setNoImage] = useState(false); return ( ( export const ConfettiProvider = ({ children = null as any }) => { const canvasRef = useRef(); const confettiRef = useRef(); - const [visible, setVisible] = useState(false); const dropConfetti = useMemo(() => (() => { if(confettiRef.current && canvasRef.current){ diff --git a/js/packages/web/src/components/PreSaleBanner/index.tsx b/js/packages/web/src/components/PreSaleBanner/index.tsx index 57d1583..76f6bfe 100644 --- a/js/packages/web/src/components/PreSaleBanner/index.tsx +++ b/js/packages/web/src/components/PreSaleBanner/index.tsx @@ -1,12 +1,11 @@ -import React, { useEffect, useMemo, useState } from 'react'; +import React from 'react'; import { Col, Row, Button } from 'antd'; import './index.less'; -import { AuctionView, useAuctions, useArt } from '../../hooks'; +import { AuctionView, useArt } from '../../hooks'; import { ArtContent } from '../ArtContent'; import { AuctionCard } from '../AuctionCard'; import { Link } from 'react-router-dom'; -import moment from 'moment'; import { MetaAvatar } from '../MetaAvatar'; interface IPreSaleBanner { diff --git a/js/packages/web/src/components/Settings/index.tsx b/js/packages/web/src/components/Settings/index.tsx index 542881d..0d2d3c3 100644 --- a/js/packages/web/src/components/Settings/index.tsx +++ b/js/packages/web/src/components/Settings/index.tsx @@ -2,7 +2,7 @@ import React from 'react'; import { Button, Select } from 'antd'; import { contexts } from '@oyster/common'; -const { useWallet, WALLET_PROVIDERS } = contexts.Wallet; +const { useWallet } = contexts.Wallet; const { ENDPOINTS, useConnectionConfig } = contexts.Connection; export const Settings = () => {