From bd603a8cc6120c8f55815ba2e86c2e3b85ea21a5 Mon Sep 17 00:00:00 2001 From: Mell Date: Thu, 7 Dec 2023 19:04:53 +0200 Subject: [PATCH] Update energy onboarding modal --- .../OnBoardingModal/steps/Energy/Energy.tsx | 44 +++++++++---------- 1 file changed, 21 insertions(+), 23 deletions(-) diff --git a/src/components/onboarding/OnBoardingModal/steps/Energy/Energy.tsx b/src/components/onboarding/OnBoardingModal/steps/Energy/Energy.tsx index 42ae771dd..8a8302eaa 100644 --- a/src/components/onboarding/OnBoardingModal/steps/Energy/Energy.tsx +++ b/src/components/onboarding/OnBoardingModal/steps/Energy/Energy.tsx @@ -12,17 +12,17 @@ import OnBoardingContentContainer from '../../OnBoardingContentContainer' import { OnBoardingContentProps } from '../../types' import styles from './Energy.module.sass' -const { TabPane } = Tabs +// const { TabPane } = Tabs type Tabs = 'burn-sub' | 'free-energy' -const getTabKey = (key: Tabs) => key +// const getTabKey = (key: Tabs) => key export default function Energy({ ...props }: OnBoardingContentProps) { const { energy: { status }, } = useAuth() const openState = useOnBoardingModalOpenState() - const [selectedTab, setSelectedTab] = useState( + const [selectedTab] = useState( 'burn-sub' // !balance.isZero() ? 'burn-sub' : 'free-energy', ) const [isDisabled, setIsDisabled] = useState(false) @@ -48,25 +48,23 @@ export default function Energy({ ...props }: OnBoardingContentProps) { hideSubmitBtn={withoutSubmitButton} >
- setSelectedTab(tab as Tabs)} - > - - saveInputtedSubAmt(amount ?? 0), - amount: inputtedSubAmt, - noButton: true, - }} - /> - + {/* setSelectedTab(tab as Tabs)}*/} + {/*>*/} + saveInputtedSubAmt(amount ?? 0), + amount: inputtedSubAmt, + noButton: true, + }} + /> {/**/} {/* setIsDiscordLinkClicked(true)}*/} {/* />*/} {/**/} - + {/**/}
)