From 262183e0e66e09bf19261524ddb94ef26ec7e07a Mon Sep 17 00:00:00 2001 From: ingawei <46611122+ingawei@users.noreply.github.com> Date: Thu, 29 Sep 2022 18:53:36 -0500 Subject: [PATCH] Inga/quick toggle fix (#964) getting rid of unused component --- .../portfolio/portfolio-value-section.tsx | 32 ------------------- 1 file changed, 32 deletions(-) diff --git a/web/components/portfolio/portfolio-value-section.tsx b/web/components/portfolio/portfolio-value-section.tsx index 688dbf10..d7fff6ef 100644 --- a/web/components/portfolio/portfolio-value-section.tsx +++ b/web/components/portfolio/portfolio-value-section.tsx @@ -4,7 +4,6 @@ import { last } from 'lodash' import { memo, useRef, useState } from 'react' import { usePortfolioHistory } from 'web/hooks/use-portfolio-history' import { Period } from 'web/lib/firebase/users' -import { PillButton } from '../buttons/pill-button' import { Col } from '../layout/col' import { Row } from '../layout/row' import { PortfolioValueGraph } from './portfolio-value-graph' @@ -147,34 +146,3 @@ export function PortfolioPeriodSelection(props: { ) } - -export function GraphToggle(props: { - setGraphMode: (mode: 'profit' | 'value') => void - graphMode: string -}) { - const { setGraphMode, graphMode } = props - return ( - - { - setGraphMode('value') - }} - xs={true} - className="z-50" - > - Value - - { - setGraphMode('profit') - }} - xs={true} - className="z-50" - > - Profit - - - ) -}