From 0a1aaead99c20b69d3155975b67ade8a2aae1c3a Mon Sep 17 00:00:00 2001 From: "Eng. Juan Combetto" Date: Tue, 28 May 2024 13:26:17 +0900 Subject: [PATCH] feat(BurnCapitalScreen): remove unused Tabs and related code --- .../screens/BurnCapital/BurnCapitalScreen.tsx | 32 +------------------ 1 file changed, 1 insertion(+), 31 deletions(-) diff --git a/packages/screens/BurnCapital/BurnCapitalScreen.tsx b/packages/screens/BurnCapital/BurnCapitalScreen.tsx index 41f744f952..71a45fcbbc 100644 --- a/packages/screens/BurnCapital/BurnCapitalScreen.tsx +++ b/packages/screens/BurnCapital/BurnCapitalScreen.tsx @@ -1,10 +1,9 @@ -import React, { useEffect, useState } from "react"; +import React, { useEffect } from "react"; import { View } from "react-native"; import { useDispatch } from "react-redux"; import { BrandText } from "@/components/BrandText"; import { ScreenContainer } from "@/components/ScreenContainer"; -import { Tabs } from "@/components/tabs/Tabs"; import { useNFTBurnerTotal } from "@/hooks/nft-burner/useNFTBurnerTotal"; import { useNFTBurnerUserCount } from "@/hooks/nft-burner/useNFTBurnerUserCount"; import { useIsMobile } from "@/hooks/useIsMobile"; @@ -20,15 +19,6 @@ import { neutral00, neutral33 } from "@/utils/style/colors"; import { fontSemibold20 } from "@/utils/style/fonts"; import { layout } from "@/utils/style/layout"; -const tabs = { - burn: { - name: "Burn NFTs", - }, - leaderboard: { - name: "Leaderboard", - }, -}; - export const BurnCapitalScreen: ScreenFC<"BurnCapital"> = ({ route }) => { const inputNetwork = route.params?.network; const selectedWallet = useSelectedWallet(); @@ -48,10 +38,6 @@ export const BurnCapitalScreen: ScreenFC<"BurnCapital"> = ({ route }) => { dispatch(setSelectedNetworkId(network.id)); }, [dispatch, inputNetwork]); - const [selectedTab, setSelectedTab] = useState<"burn" | "leaderboard">( - "burn", - ); - const { data: count } = useNFTBurnerUserCount(selectedWallet?.userId); const { data: total } = useNFTBurnerTotal(selectedNetworkId); return ( @@ -78,13 +64,6 @@ export const BurnCapitalScreen: ScreenFC<"BurnCapital"> = ({ route }) => { alignItems: "center", }} > - - {typeof total === "number" && ( Total burned: {total} @@ -92,15 +71,6 @@ export const BurnCapitalScreen: ScreenFC<"BurnCapital"> = ({ route }) => { {typeof count === "number" && ( Burned by you: {count} )} - {/*{nftCollectionToBurn.map((nft) => (*/} - {/* */} - {/*))}*/}