From 2ef93986fec3613abac25aeff47e99249e9ba555 Mon Sep 17 00:00:00 2001 From: Ralf Date: Mon, 9 Oct 2023 16:12:40 -0300 Subject: [PATCH] chore(app): remove cond order warning (#1024) --- .../UserTabs/ConditionalOrdersTab.tsx | 2 -- .../UserInfo/ConditionalOrdersTable.tsx | 2 -- .../UserInfo/ConditionalOrdersWarning.tsx | 31 ------------------- 3 files changed, 35 deletions(-) delete mode 100644 packages/app/src/sections/futures/UserInfo/ConditionalOrdersWarning.tsx diff --git a/packages/app/src/sections/futures/MobileTrade/UserTabs/ConditionalOrdersTab.tsx b/packages/app/src/sections/futures/MobileTrade/UserTabs/ConditionalOrdersTab.tsx index f12970b861..9f635d7f0a 100644 --- a/packages/app/src/sections/futures/MobileTrade/UserTabs/ConditionalOrdersTab.tsx +++ b/packages/app/src/sections/futures/MobileTrade/UserTabs/ConditionalOrdersTab.tsx @@ -12,7 +12,6 @@ import { TableNoResults } from 'components/Table' import { Body } from 'components/Text' import { NO_VALUE } from 'constants/placeholder' import PositionType from 'sections/futures/PositionType' -import ConditionalOrdersWarning from 'sections/futures/UserInfo/ConditionalOrdersWarning' import { selectMarketAsset } from 'state/futures/common/selectors' import { cancelConditionalOrder } from 'state/futures/smartMargin/actions' import { @@ -53,7 +52,6 @@ const ConditionalOrdersTab: React.FC = () => { return (
- {rows.length === 0 ? ( You have no open orders diff --git a/packages/app/src/sections/futures/UserInfo/ConditionalOrdersTable.tsx b/packages/app/src/sections/futures/UserInfo/ConditionalOrdersTable.tsx index ca30a75814..b467c13e7d 100644 --- a/packages/app/src/sections/futures/UserInfo/ConditionalOrdersTable.tsx +++ b/packages/app/src/sections/futures/UserInfo/ConditionalOrdersTable.tsx @@ -24,7 +24,6 @@ import { useAppDispatch, useAppSelector } from 'state/hooks' import PositionType from '../PositionType' -import ConditionalOrdersWarning from './ConditionalOrdersWarning' import TableMarketDetails from './TableMarketDetails' export default function ConditionalOrdersTable() { @@ -57,7 +56,6 @@ export default function ConditionalOrdersTable() { return ( - - Conditional orders are executed based on the onchain Pyth or Chainlink price. See the{' '} - - blog post - {' '} - for more details. - - ) -} - -const OrdersWarning = styled.div<{ mobile?: boolean }>` - padding: 10px; - color: ${(props) => props.theme.colors.selectedTheme.newTheme.text.warning}; - border-top: ${(props) => - props.mobile ? 'none' : props.theme.colors.selectedTheme.newTheme.border.style}; - border-bottom: ${(props) => - props.mobile ? props.theme.colors.selectedTheme.newTheme.border.style : 'none'}; - text-align: center; -`