From c6872ea759147d1f5415978a474dbdb29d5b7143 Mon Sep 17 00:00:00 2001 From: Geolffrey Mena Date: Wed, 1 Jan 2025 07:26:38 -0600 Subject: [PATCH] refactor: temporary remove metamask --- src/pages/dashboard/finance.tsx | 2 +- .../finance/components/finance-contacts.tsx | 26 +++++++++---------- src/sections/finance/index.tsx | 3 ++- 3 files changed, 16 insertions(+), 15 deletions(-) diff --git a/src/pages/dashboard/finance.tsx b/src/pages/dashboard/finance.tsx index 36fd3919..9eb1afe9 100644 --- a/src/pages/dashboard/finance.tsx +++ b/src/pages/dashboard/finance.tsx @@ -4,7 +4,7 @@ import Header from "@src/layouts/dashboard/header.tsx"; import HeaderContent from "@src/layouts/dashboard/header-content.tsx"; import withAuth from '@src/components/should-login/withAuth'; -const OverviewBankingViewWithAuth = withAuth(OverviewBankingView, 'iconoir:stats-report', 'Log in to access your balance, transfers, and more.'); +const OverviewBankingViewWithAuth = withAuth(OverviewBankingView, 'iconoir:stats-report', 'Login to access your balance.'); export default function OverviewBankingPage() { return ( diff --git a/src/sections/finance/components/finance-contacts.tsx b/src/sections/finance/components/finance-contacts.tsx index c8b80b12..38f2e2da 100644 --- a/src/sections/finance/components/finance-contacts.tsx +++ b/src/sections/finance/components/finance-contacts.tsx @@ -19,8 +19,8 @@ import { useRouter } from '@src/routes/hooks'; // lens import { Profile } from '@lens-protocol/api-bindings'; -import {useDispatch} from "react-redux"; -import {storeAddress, toggleRainbow} from '@redux/address'; +import { useDispatch } from "react-redux"; +import { storeAddress, toggleRainbow } from '@redux/address'; import React from "react"; // ---------------------------------------------------------------------- @@ -33,20 +33,20 @@ interface Props extends CardProps { } export default function FinanceContactsCarousel({ - title, - subheader, - list, - chunkSize = 5, - ...other - }: Props) { + title, + subheader, + list, + chunkSize = 5, + ...other +}: Props) { const router = useRouter(); const dispatch = useDispatch(); function scrollToSmoothly(pos: number, time: number) { let currentPos = window.scrollY; - let start:number |null = null; - if(time == null) time = 500; + let start: number | null = null; + if (time == null) time = 500; // eslint-disable-next-line @typescript-eslint/no-unused-expressions pos = +pos, time = +time; window.requestAnimationFrame(function step(currentTime) { @@ -67,13 +67,13 @@ export default function FinanceContactsCarousel({ const handleClick = (address: string, profileId: string) => { dispatch(toggleRainbow()); - dispatch(storeAddress({address, profileId})); + dispatch(storeAddress({ address, profileId })); // Scroll to top the window with a smooth animation scrollToSmoothly(0, 1000) setTimeout(() => { dispatch(toggleRainbow()); - },1400) + }, 1400) } const goToProfile = (id: string) => { @@ -130,7 +130,7 @@ type SlideContactsProps = { onClickArrow: (address: string, profileId: string) => void; }; -function SlideContacts({ chunk, goToProfile, onClickArrow}: SlideContactsProps) { +function SlideContacts({ chunk, goToProfile, onClickArrow }: SlideContactsProps) { const handleArrowClick = (event: React.MouseEvent, address: string, profileId: string) => { event.stopPropagation(); onClickArrow(address, profileId); diff --git a/src/sections/finance/index.tsx b/src/sections/finance/index.tsx index e3fbda6b..5a59a0a5 100644 --- a/src/sections/finance/index.tsx +++ b/src/sections/finance/index.tsx @@ -76,7 +76,7 @@ export default function OverviewBankingView() { }} /> - + {/* */} @@ -100,6 +100,7 @@ export default function OverviewBankingView() { {following?.length ? (