From 3a345508de33460c82e801efe05dae2944c449fb Mon Sep 17 00:00:00 2001 From: "darwin.apolinario" Date: Sat, 4 Nov 2023 13:53:54 +0800 Subject: [PATCH] fix: auth issue --- src/blocks/Image/ZestyImage.js | 5 ++-- src/layouts/Main/components/Footer/Footer.js | 1 + src/pages/_app.js | 26 ++++++++++-------- src/pages/dashboard.js | 5 ++-- src/revamp/ui/HeroV2/Logos.js | 5 ++-- src/revamp/ui/HeroV2/index.js | 12 ++++---- src/revamp/ui/TabsSection/TabSection.js | 9 +----- src/revamp/ui/TabsSection/index.js | 29 ++++++++++---------- 8 files changed, 44 insertions(+), 48 deletions(-) diff --git a/src/blocks/Image/ZestyImage.js b/src/blocks/Image/ZestyImage.js index d23e59d0d..1759a043b 100644 --- a/src/blocks/Image/ZestyImage.js +++ b/src/blocks/Image/ZestyImage.js @@ -21,7 +21,7 @@ const ZestyImage = ({ options = {}, src, alt, - loading = 'lazy', + loading = 'eager', style = {}, attributes = {}, }) => { @@ -43,8 +43,7 @@ const ZestyImage = ({ ); return ( - { width={150} height={150} alt="zesty.io logo" + loading="lazy" src={ mode === 'light' && !colorInvert ? 'https://brand.zesty.io/zesty-io-logo-vertical.svg' diff --git a/src/pages/_app.js b/src/pages/_app.js index 3b6c89d5d..a4c4a9e08 100644 --- a/src/pages/_app.js +++ b/src/pages/_app.js @@ -11,11 +11,12 @@ import 'react-image-lightbox/style.css'; import 'aos/dist/aos.css'; import '../../public/styles/custom.css'; import { SnackbarProvider } from 'notistack'; -import Head from 'next/head'; import AuthProvider from 'components/context/AuthProvider'; import '/public/styles/app.css'; import '/public/styles/docs.css'; +import Script from 'next/script'; +import Head from 'next/head'; if (process.env.NODE_ENV === 'production') { console.log = () => {}; @@ -66,8 +67,8 @@ export default function App({ Component, pageProps }) { {GTM_ID && (