Skip to content

Commit

Permalink
Revert "Add Voting Dashboard [WIP]"
Browse files Browse the repository at this point in the history
This reverts commit 05d0958.
  • Loading branch information
Vitalsine85 committed Feb 6, 2023
1 parent 75f0315 commit d5be8fe
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 261 deletions.
10 changes: 5 additions & 5 deletions src/pages/vebao/components/Lock.tsx
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
import Config from '@/bao/lib/config'
import useTokenBalance from '@/hooks/base/useTokenBalance'
import useBaoPrice from '@/hooks/base/useBaoPrice'
import useLockInfo from '@/hooks/vebao/useLockInfo'
import { useQuery } from '@tanstack/react-query'
import { useWeb3React } from '@web3-react/core'
import { useQuery } from '@tanstack/react-query'
import { BigNumber } from 'ethers'
import 'rc-slider/assets/index.css'
import React from 'react'
import Actions from './Actions'
//import BoostCalc from './BoostCalc'
import LockStats, { ProtocolStatsHoriz } from './Stats'
import { providerKey } from '@/utils/index'
import { useTxReceiptUpdater } from '@/hooks/base/useTransactionProvider'
import { useBlockUpdater } from '@/hooks/base/useBlock'
import usePrice from '@/hooks/base/usePrice'
import useVeInfo from '@/hooks/vebao/useVeInfo'
import { providerKey } from '@/utils/index'
import LockStats, { ProtocolStatsHoriz } from './Stats'
import VotingDashboard from './VotingDashboard'

const Lock: React.FC = () => {
const { library, account, chainId } = useWeb3React()
Expand Down Expand Up @@ -47,7 +48,6 @@ const Lock: React.FC = () => {
<LockStats baoBalance={baoBalance} lockInfo={lockInfo} timestamp={blockTimestamp} />
</div>
<ProtocolStatsHoriz baoPrice={baoPrice} baoBalance={baoBalance} lockInfo={lockInfo} veInfo={veInfo} timestamp={blockTimestamp} />
<VotingDashboard />
{/* Boost Calculator is borked, will fix soon */}
{/* <BoostCalc lockInfo={lockInfo} /> */}
</>
Expand Down
255 changes: 0 additions & 255 deletions src/pages/vebao/components/VotingDashboard.tsx

This file was deleted.

2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"include": [
"next-env.d.ts",
"src/*.ts", "src/*.tsx",
"src/**/*.ts", "src/**/*.tsx", "src/utils/weeklyCountdown.js",
"src/**/*.ts", "src/**/*.tsx",
],
"exclude": [
"node_modules",
Expand Down

0 comments on commit d5be8fe

Please sign in to comment.