From 725b74a87972a54383832680785e47b1f450f99b Mon Sep 17 00:00:00 2001 From: sh-wallet <137136919+sh-wallet@users.noreply.github.com> Date: Thu, 24 Oct 2024 17:22:04 +0530 Subject: [PATCH] refactor: removed console and unused flex-wrap --- .../components/new/animations/animated-number/add-comma.tsx | 2 +- .../src/components/new/animations/animated-number/index.tsx | 1 - .../components/new/stake-validetor-card/stake-validator.tsx | 6 +----- packages/mobile/src/screens/register/torus/index.tsx | 5 +---- 4 files changed, 3 insertions(+), 11 deletions(-) diff --git a/packages/mobile/src/components/new/animations/animated-number/add-comma.tsx b/packages/mobile/src/components/new/animations/animated-number/add-comma.tsx index 91e4a14be4..ae475bc5ff 100644 --- a/packages/mobile/src/components/new/animations/animated-number/add-comma.tsx +++ b/packages/mobile/src/components/new/animations/animated-number/add-comma.tsx @@ -24,7 +24,7 @@ export function AddComma( } const dotAndElementAfterDot: any[] = GetDotAndElementAfterDot(array); - // console.log('dotAndElementAfterDot',dotAndElementAfterDot); + function AddCommaForInteger(numberInteger: number) { const integer = Math.floor(numberInteger); const integerPartString = integer.toString(); diff --git a/packages/mobile/src/components/new/animations/animated-number/index.tsx b/packages/mobile/src/components/new/animations/animated-number/index.tsx index 04dffc009b..7175b4e55d 100644 --- a/packages/mobile/src/components/new/animations/animated-number/index.tsx +++ b/packages/mobile/src/components/new/animations/animated-number/index.tsx @@ -62,7 +62,6 @@ export function AnimatedNumber({ const newArray = AddComma(numberForAnimated, numberArray, decimalAmount); numberArray = [...newArray]; } - // console.log(numberArray) } const heightContainer = fontSizeValue! || 70; diff --git a/packages/mobile/src/components/new/stake-validetor-card/stake-validator.tsx b/packages/mobile/src/components/new/stake-validetor-card/stake-validator.tsx index 74f8c61706..2643180191 100644 --- a/packages/mobile/src/components/new/stake-validetor-card/stake-validator.tsx +++ b/packages/mobile/src/components/new/stake-validetor-card/stake-validator.tsx @@ -145,11 +145,7 @@ export const StakeValidatorCardView: FunctionComponent<{ scrollEnabled={false} horizontal={true} contentContainerStyle={ - style.flatten([ - "width-full", - "justify-between", - "flex-wrap", - ]) as ViewStyle + style.flatten(["width-full", "justify-between"]) as ViewStyle } renderItem={({ item, index }: { item: ItemData; index: number }) => { return ( diff --git a/packages/mobile/src/screens/register/torus/index.tsx b/packages/mobile/src/screens/register/torus/index.tsx index 9e7fafd1f3..22387dbc9a 100644 --- a/packages/mobile/src/screens/register/torus/index.tsx +++ b/packages/mobile/src/screens/register/torus/index.tsx @@ -66,11 +66,10 @@ const useWeb3AuthSignIn = ( try { loadingScreen.setIsLoading(true); if (!web3auth) { - console.log("Web3auth not initialized"); + console.error("Web3auth not initialized"); return; } - console.log("Logging in"); await web3auth.login({ loginProvider: type, redirectUrl: resolvedRedirectUrl, @@ -78,7 +77,6 @@ const useWeb3AuthSignIn = ( curve: "secp256k1", }); - console.log(`Logged in ${web3auth.privKey}`); if (web3auth.privKey) { setEmail(web3auth.userInfo()?.email); setPrivateKey(Buffer.from(web3auth.privKey, "hex")); @@ -124,7 +122,6 @@ const logoutWeb3Auth = async () => { return; } - console.log("Logging out"); await web3auth.logout(); };