remove unused imports/code from web/src/components
This commit is contained in:
parent
549ffe907f
commit
e35e8eab89
|
@ -1,4 +1,4 @@
|
||||||
import React, { useEffect, useMemo, useState } from 'react';
|
import React from 'react';
|
||||||
import { Card, CardProps, Button, Badge } from 'antd';
|
import { Card, CardProps, Button, Badge } from 'antd';
|
||||||
import { MetadataCategory } from '@oyster/common';
|
import { MetadataCategory } from '@oyster/common';
|
||||||
import { ArtContent } from './../ArtContent';
|
import { ArtContent } from './../ArtContent';
|
||||||
|
|
|
@ -1,14 +1,13 @@
|
||||||
import React, { useState } from 'react'
|
import React, { useState } from 'react'
|
||||||
import { Card, Avatar } from 'antd'
|
import { Card } from 'antd'
|
||||||
|
|
||||||
import { Artist } from '../../types'
|
import { Artist } from '../../types'
|
||||||
|
|
||||||
import './index.less'
|
import './index.less'
|
||||||
import { Identicon, shortenAddress } from '@oyster/common'
|
import { shortenAddress } from '@oyster/common'
|
||||||
import { MetaAvatar } from '../MetaAvatar';
|
import { MetaAvatar } from '../MetaAvatar';
|
||||||
|
|
||||||
export const ArtistCard = ({artist}: {artist: Artist}) => {
|
export const ArtistCard = ({artist}: {artist: Artist}) => {
|
||||||
const [noImage, setNoImage] = useState(false);
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Card
|
<Card
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import React, { useEffect, useState } from 'react';
|
import React, { useState } from 'react';
|
||||||
import { Row, Col, Button, InputNumber, Spin } from 'antd';
|
import { Col, Button, InputNumber, Spin } from 'antd';
|
||||||
import { MemoryRouter, Route, Redirect, Link } from 'react-router-dom';
|
import { MemoryRouter, Route, Redirect, Link } from 'react-router-dom';
|
||||||
|
|
||||||
import './index.less';
|
import './index.less';
|
||||||
|
@ -11,14 +11,10 @@ import {
|
||||||
MetaplexOverlay,
|
MetaplexOverlay,
|
||||||
formatAmount,
|
formatAmount,
|
||||||
formatTokenAmount,
|
formatTokenAmount,
|
||||||
useMint,
|
useMint
|
||||||
fromLamports,
|
|
||||||
CountdownState,
|
|
||||||
} from '@oyster/common';
|
} from '@oyster/common';
|
||||||
import {
|
import {
|
||||||
AuctionView,
|
AuctionView,
|
||||||
AuctionViewState,
|
|
||||||
useBidsForAuction,
|
|
||||||
useUserBalance,
|
useUserBalance,
|
||||||
} from '../../hooks';
|
} from '../../hooks';
|
||||||
import { sendPlaceBid } from '../../actions/sendPlaceBid';
|
import { sendPlaceBid } from '../../actions/sendPlaceBid';
|
||||||
|
@ -27,7 +23,6 @@ import {
|
||||||
sendRedeemBid,
|
sendRedeemBid,
|
||||||
eligibleForParticipationPrizeGivenWinningIndex,
|
eligibleForParticipationPrizeGivenWinningIndex,
|
||||||
} from '../../actions/sendRedeemBid';
|
} from '../../actions/sendRedeemBid';
|
||||||
import { AmountLabel } from '../AmountLabel';
|
|
||||||
import { sendCancelBid } from '../../actions/cancelBid';
|
import { sendCancelBid } from '../../actions/cancelBid';
|
||||||
import BN from 'bn.js';
|
import BN from 'bn.js';
|
||||||
import { Confetti } from '../Confetti';
|
import { Confetti } from '../Confetti';
|
||||||
|
|
|
@ -3,7 +3,6 @@ import { Row, Col } from 'antd';
|
||||||
|
|
||||||
import './../AuctionCard/index.less';
|
import './../AuctionCard/index.less';
|
||||||
import {
|
import {
|
||||||
contexts,
|
|
||||||
formatTokenAmount,
|
formatTokenAmount,
|
||||||
useMint,
|
useMint,
|
||||||
fromLamports,
|
fromLamports,
|
||||||
|
|
|
@ -1,11 +1,9 @@
|
||||||
import React, { useEffect, useMemo, useState } from 'react';
|
import React, { useEffect, useState } from 'react';
|
||||||
import { Card, Avatar, Col, Row, CardProps, Button, Badge } from 'antd';
|
import { Card, CardProps } from 'antd';
|
||||||
import { Creator, MetadataCategory, shortenAddress, useConnection, formatTokenAmount, CountdownState } from '@oyster/common';
|
import { formatTokenAmount, CountdownState } from '@oyster/common';
|
||||||
import { ArtContent } from '../ArtContent';
|
import { ArtContent } from '../ArtContent';
|
||||||
import './index.less';
|
import './index.less';
|
||||||
import { AuctionView, useArt, useCreators } from '../../hooks';
|
import { AuctionView, useArt, useCreators } from '../../hooks';
|
||||||
import { PublicKey } from '@solana/web3.js';
|
|
||||||
import { Artist, ArtType } from '../../types';
|
|
||||||
import { MetaAvatar } from '../MetaAvatar';
|
import { MetaAvatar } from '../MetaAvatar';
|
||||||
import { AmountLabel } from '../AmountLabel';
|
import { AmountLabel } from '../AmountLabel';
|
||||||
import { useHighestBidForAuction } from '../../hooks';
|
import { useHighestBidForAuction } from '../../hooks';
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import React, { useContext, useEffect, useLayoutEffect, useMemo, useRef, useState } from "react";
|
import React, { useContext, useEffect, useMemo, useRef } from "react";
|
||||||
import confetti from 'canvas-confetti';
|
import confetti from 'canvas-confetti';
|
||||||
|
|
||||||
export interface ConfettiContextState {
|
export interface ConfettiContextState {
|
||||||
|
@ -12,7 +12,6 @@ const ConfettiContext = React.createContext<ConfettiContextState | null>(
|
||||||
export const ConfettiProvider = ({ children = null as any }) => {
|
export const ConfettiProvider = ({ children = null as any }) => {
|
||||||
const canvasRef = useRef<HTMLCanvasElement>();
|
const canvasRef = useRef<HTMLCanvasElement>();
|
||||||
const confettiRef = useRef<confetti.CreateTypes>();
|
const confettiRef = useRef<confetti.CreateTypes>();
|
||||||
const [visible, setVisible] = useState(false);
|
|
||||||
|
|
||||||
const dropConfetti = useMemo(() => (() => {
|
const dropConfetti = useMemo(() => (() => {
|
||||||
if(confettiRef.current && canvasRef.current){
|
if(confettiRef.current && canvasRef.current){
|
||||||
|
|
|
@ -1,12 +1,11 @@
|
||||||
import React, { useEffect, useMemo, useState } from 'react';
|
import React from 'react';
|
||||||
import { Col, Row, Button } from 'antd';
|
import { Col, Row, Button } from 'antd';
|
||||||
|
|
||||||
import './index.less';
|
import './index.less';
|
||||||
import { AuctionView, useAuctions, useArt } from '../../hooks';
|
import { AuctionView, useArt } from '../../hooks';
|
||||||
import { ArtContent } from '../ArtContent';
|
import { ArtContent } from '../ArtContent';
|
||||||
import { AuctionCard } from '../AuctionCard';
|
import { AuctionCard } from '../AuctionCard';
|
||||||
import { Link } from 'react-router-dom';
|
import { Link } from 'react-router-dom';
|
||||||
import moment from 'moment';
|
|
||||||
import { MetaAvatar } from '../MetaAvatar';
|
import { MetaAvatar } from '../MetaAvatar';
|
||||||
|
|
||||||
interface IPreSaleBanner {
|
interface IPreSaleBanner {
|
||||||
|
|
|
@ -2,7 +2,7 @@ import React from 'react';
|
||||||
import { Button, Select } from 'antd';
|
import { Button, Select } from 'antd';
|
||||||
import { contexts } from '@oyster/common';
|
import { contexts } from '@oyster/common';
|
||||||
|
|
||||||
const { useWallet, WALLET_PROVIDERS } = contexts.Wallet;
|
const { useWallet } = contexts.Wallet;
|
||||||
const { ENDPOINTS, useConnectionConfig } = contexts.Connection;
|
const { ENDPOINTS, useConnectionConfig } = contexts.Connection;
|
||||||
|
|
||||||
export const Settings = () => {
|
export const Settings = () => {
|
||||||
|
|
Loading…
Reference in New Issue