Skip to content

Commit

Permalink
cleanup: remove original wells components
Browse files Browse the repository at this point in the history
  • Loading branch information
silochad committed Jun 26, 2023
1 parent ed149f7 commit 2dbfd5c
Show file tree
Hide file tree
Showing 12 changed files with 2 additions and 721 deletions.
3 changes: 0 additions & 3 deletions projects/ui/src/components/App/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -191,9 +191,6 @@ export default function App() {
element={<Navigate to="/market/sell/:orderID" />}
/>
</Route>
{/* DEX CODE (hidden) */}
{/* <Route path="/market/wells" element={<WellHomePage />} /> */}
{/* <Route path="/market/wells/:id" element={<WellPage />} /> */}
<Route path="/nft" element={<NFTPage />} />
<Route path="/governance/:id" element={<ProposalPage />} />
<Route
Expand Down
79 changes: 2 additions & 77 deletions projects/ui/src/components/Common/Table/cells.tsx
Original file line number Diff line number Diff line change
@@ -1,21 +1,19 @@
import React from 'react';
import { Chip, Link, Tooltip, Typography } from '@mui/material';
import { Chip, Tooltip, Typography } from '@mui/material';
import {
GridColumns,
GridRenderCellParams,
GridValueFormatterParams,
} from '@mui/x-data-grid';
import ArrowRightIcon from '@mui/icons-material/ArrowRight';
import BigNumber from 'bignumber.js';
import { displayBN, displayFullBN, MaxBN, trimAddress } from '~/util';
import { displayBN, displayFullBN, MaxBN } from '~/util';
import { BEAN, PODS } from '~/constants/tokens';
import { ZERO_BN } from '~/constants';
import { PodListing, PodOrder } from '~/state/farmer/market';
import TokenIcon from '../TokenIcon';
import AddressIcon from '../AddressIcon';
import Row from '~/components/Common/Row';
import { WellActivityData } from '~/components/Market/Wells/Tables';
import { Token } from '~/classes';
import { BeanstalkPalette } from '~/components/App/muiTheme';

const basicCell = (params: GridRenderCellParams) => (
Expand Down Expand Up @@ -252,79 +250,6 @@ const COLUMNS = {
),
} as GridColumns[number]),

///
/// DEX
///
///
label: (flex: number, tabs: any) =>
({
field: 'label',
headerName: 'Type',
renderHeader: () => tabs,
flex: flex,
align: 'left',
headerAlign: 'left',
sortable: false,
renderCell: (params: GridRenderCellParams<any, WellActivityData>) => (
<Link
href={`https://etherscan.io/tx/${params.row.hash}`}
target="_blank"
rel="noopener noreferrer"
>
<Typography>{params.row.label}</Typography>
</Link>
),
} as GridColumns[number]),
tokenAmount: (column: string, token: Token, flex: number) =>
({
field: column,
headerName: 'Token Amount',
flex: flex,
align: 'left',
headerAlign: 'left',
renderCell: (params: GridRenderCellParams<any, WellActivityData>) => (
<Typography>
{displayBN(params.row.tokenAmount0)} {token.symbol}
</Typography>
),
} as GridColumns[number]),
totalValue: (flex: number) =>
({
field: 'totalValue',
headerName: 'Total Value',
flex: flex,
align: 'left',
headerAlign: 'left',
renderCell: (params: GridRenderCellParams<any, WellActivityData>) => (
<Typography>{displayBN(params.row.totalValue)}</Typography>
),
} as GridColumns[number]),
account: (flex: number) =>
({
field: 'account',
headerName: 'Account',
flex: flex,
align: 'right',
headerAlign: 'right',
renderCell: (params: GridRenderCellParams<any, WellActivityData>) => (
<Link>
<Typography>{trimAddress(params.row.account)}</Typography>
</Link>
),
} as GridColumns[number]),

time: (flex: number) =>
({
field: 'time',
headerName: 'Time',
flex: flex,
align: 'right',
headerAlign: 'right',
renderCell: (params: GridRenderCellParams<any, WellActivityData>) => (
<Typography>{params.row.time}</Typography>
),
} as GridColumns[number]),

///
/// Extras
///
Expand Down
32 changes: 0 additions & 32 deletions projects/ui/src/components/Market/Wells/Charts/index.tsx

This file was deleted.

92 changes: 0 additions & 92 deletions projects/ui/src/components/Market/Wells/Tables/index.tsx

This file was deleted.

34 changes: 0 additions & 34 deletions projects/ui/src/components/Market/Wells/WellButtons.tsx

This file was deleted.

75 changes: 0 additions & 75 deletions projects/ui/src/components/Market/Wells/WellReserves.tsx

This file was deleted.

45 changes: 0 additions & 45 deletions projects/ui/src/components/Market/Wells/WellStat.tsx

This file was deleted.

Loading

0 comments on commit 2dbfd5c

Please sign in to comment.