From 788f192cc61013e6b3d5a5f402301efa2a8628a1 Mon Sep 17 00:00:00 2001 From: dappsar Date: Tue, 14 Nov 2023 01:19:00 -0300 Subject: [PATCH] fixed linter errors --- src/context/Web3ContextNew.js | 9 +++------ src/pages/index.jsx | 2 +- src/sections/Alpha/AlphaCards.jsx | 4 ++-- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/src/context/Web3ContextNew.js b/src/context/Web3ContextNew.js index b45a2ce4..ccca12f6 100644 --- a/src/context/Web3ContextNew.js +++ b/src/context/Web3ContextNew.js @@ -180,13 +180,10 @@ const Web3ContextProvider = ({ children }) => { } } - const setLanguage = useCallback(() => { - const updateLocale = useSetLocale() - updateLocale(languageSetted || 'en') - }) - const connectWallet = useCallback(() => { - setLanguage() + // const updateLocale = useSetLocale() + // updateLocale(languageSetted || 'en') + web3Onboard.connectWallet() .then((wallets) => { if (wallets) { diff --git a/src/pages/index.jsx b/src/pages/index.jsx index a18a7669..60ac49b3 100644 --- a/src/pages/index.jsx +++ b/src/pages/index.jsx @@ -1,4 +1,4 @@ -import React, { useRef, useEffect } from 'react' +import React, { useRef } from 'react' import Head from 'next/head' import Navbar from '../components/Navbar' import Footer from '../components/Footer' diff --git a/src/sections/Alpha/AlphaCards.jsx b/src/sections/Alpha/AlphaCards.jsx index 8a359b40..d511a93b 100644 --- a/src/sections/Alpha/AlphaCards.jsx +++ b/src/sections/Alpha/AlphaCards.jsx @@ -168,9 +168,9 @@ const AlphaCards = ({ loadAlbums, setLoadAlbums, alphaMidButton }) => { } useEffect(() => { - setSeasonData().then((res) => { + setSeasonData().then(() => { stopLoading() - }).catch((e) => { + }).catch((ex) => { stopLoading() console.error(ex) })