From 41f52b5eb24e6340283917e81f1e9de082bd3593 Mon Sep 17 00:00:00 2001 From: Mark Grothe Date: Sat, 26 Oct 2024 15:23:59 -0500 Subject: [PATCH] fix: cleanup stable tooltip --- src/components/infoTooltips/APYTypeTooltip.tsx | 15 --------------- .../BorrowedPositionsList.tsx | 15 --------------- src/modules/dashboard/lists/ListItemLoader.tsx | 4 ---- 3 files changed, 34 deletions(-) delete mode 100644 src/components/infoTooltips/APYTypeTooltip.tsx diff --git a/src/components/infoTooltips/APYTypeTooltip.tsx b/src/components/infoTooltips/APYTypeTooltip.tsx deleted file mode 100644 index a788b9b7dd..0000000000 --- a/src/components/infoTooltips/APYTypeTooltip.tsx +++ /dev/null @@ -1,15 +0,0 @@ -import { Trans } from '@lingui/macro'; - -import { TextWithTooltip, TextWithTooltipProps } from '../TextWithTooltip'; - -export const APYTypeTooltip = ({ ...rest }: TextWithTooltipProps) => { - return ( - - - Allows you to switch between variable and stable interest rates, where - variable rate can increase and decrease depending on the amount of liquidity in the reserve, - and stable rate will stay the same for the duration of your loan. - - - ); -}; diff --git a/src/modules/dashboard/lists/BorrowedPositionsList/BorrowedPositionsList.tsx b/src/modules/dashboard/lists/BorrowedPositionsList/BorrowedPositionsList.tsx index 02be324eae..521f680722 100644 --- a/src/modules/dashboard/lists/BorrowedPositionsList/BorrowedPositionsList.tsx +++ b/src/modules/dashboard/lists/BorrowedPositionsList/BorrowedPositionsList.tsx @@ -11,7 +11,6 @@ import { fetchIconSymbolAndName } from 'src/ui-config/reservePatches'; import { GHO_SYMBOL } from 'src/utils/ghoUtilities'; import { GENERAL } from 'src/utils/mixPanelEvents'; -import { APYTypeTooltip } from '../../../../components/infoTooltips/APYTypeTooltip'; import { BorrowPowerTooltip } from '../../../../components/infoTooltips/BorrowPowerTooltip'; import { TotalBorrowAPYTooltip } from '../../../../components/infoTooltips/TotalBorrowAPYTooltip'; import { ListWrapper } from '../../../../components/lists/ListWrapper'; @@ -44,20 +43,6 @@ const head = [ title: APY, sortKey: 'borrowAPY', }, - { - title: ( - APY type} - key="APY type" - variant="subheader2" - /> - ), - sortKey: 'typeAPY', - }, ]; export const BorrowedPositionsList = () => { diff --git a/src/modules/dashboard/lists/ListItemLoader.tsx b/src/modules/dashboard/lists/ListItemLoader.tsx index ec801a7637..91a3f827d6 100644 --- a/src/modules/dashboard/lists/ListItemLoader.tsx +++ b/src/modules/dashboard/lists/ListItemLoader.tsx @@ -22,10 +22,6 @@ export const ListItemLoader = () => { - - - -