From 34e4333a9d57fecb90af929dfbe907c013ca9eb2 Mon Sep 17 00:00:00 2001 From: Richard Abrich Date: Mon, 28 Oct 2024 02:04:02 -0400 Subject: [PATCH 1/7] Update Footer.js: add Sketch --- components/Footer.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/components/Footer.js b/components/Footer.js index 9c05973..d710796 100644 --- a/components/Footer.js +++ b/components/Footer.js @@ -1,16 +1,20 @@ import React, { useState } from 'react' +import dynamic from 'next/dynamic' import Image from 'next/image' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import { faArrowPointer } from '@fortawesome/free-solid-svg-icons' import styles from './Footer.module.css' +// Dynamically import Sketch with SSR disabled +const SketchNoSSR = dynamic(() => import('./Sketch'), { + ssr: false, +}) + export default function Footer() { const currentYear = new Date().getFullYear() - // Function to handle the reveal of the email address const revealEmail = () => { - // Construct the email address and open in mail client const user = 'hello' const domain = 'openadapt.ai' window.location.href = `mailto:${user}@${domain}` @@ -18,6 +22,7 @@ export default function Footer() { return (
+ {/* Include Sketch component here */}