From c574a31ba25018b709fe67f1b9f0247c5db6394a Mon Sep 17 00:00:00 2001 From: Chuck Dries Date: Sat, 11 Mar 2023 00:46:14 -0800 Subject: [PATCH] add secret debug helper --- src/components/MasonryGallery.tsx | 2 +- src/components/Nav.tsx | 39 ++++++++++++++++++++++--------- 2 files changed, 29 insertions(+), 12 deletions(-) diff --git a/src/components/MasonryGallery.tsx b/src/components/MasonryGallery.tsx index fbbffcc..9da3b5a 100644 --- a/src/components/MasonryGallery.tsx +++ b/src/components/MasonryGallery.tsx @@ -163,7 +163,7 @@ const MasonryGallery = ({
{data.map((dataString, i) => ( {dataString} diff --git a/src/components/Nav.tsx b/src/components/Nav.tsx index e8af24f..6784a2c 100644 --- a/src/components/Nav.tsx +++ b/src/components/Nav.tsx @@ -1,10 +1,11 @@ -import React, { useState } from "react"; +import React, { useRef, useState } from "react"; import classnames from "classnames"; -import { Link } from "gatsby"; +import { Link, navigate } from "gatsby"; import { Popover } from "react-tiny-popover"; import { StaticImage } from "gatsby-plugin-image"; -const navClasses = "hover:underline hover:bg-black/10 block p-3 text-black flex-shrink-0 whitespace-nowrap"; +const navClasses = + "hover:underline hover:bg-black/10 block p-3 text-black flex-shrink-0 whitespace-nowrap"; const ExternalLinks = () => (
    { const [linksMenu, setLinksMenu] = useState(false); + const faceClicks = useRef(0); + const faceLastClicked = useRef(0); return (