add Positions table just displaying raw contract data

This commit is contained in:
Maximilian Schneider 2021-06-25 13:30:51 +02:00
parent e9cdeb8a08
commit 40c46a6b98
1 changed files with 5 additions and 1 deletions

View File

@ -2,10 +2,12 @@ import { useState } from 'react'
import FloatingElement from './FloatingElement'
import OpenOrdersTable from './OpenOrdersTable'
import BalancesTable from './BalancesTable'
import PositionsTable from './PositionsTable'
import TradeHistoryTable from './TradeHistoryTable'
import { Position } from '../public/charting_library/charting_library'
// import FeeDiscountsTable from './FeeDiscountsTable'
const TABS = ['Open Orders', 'Balances', 'Trade History' /*'Fee Discounts'*/]
const TABS = ['Open Orders', 'Balances', 'Trade History', 'Positions' /*'Fee Discounts'*/]
const UserInfoTabs = ({ activeTab, setActiveTab }) => {
const handleTabChange = (tabName) => {
@ -64,6 +66,8 @@ const TabContent = ({ activeTab }) => {
return <BalancesTable />
case 'Trade History':
return <TradeHistoryTable />
case 'Positions':
return <PositionsTable />
// case 'Fee Discounts':
// return <FeeDiscountsTable />
default: