From b803e9cb95ea65eb7d19635c733784a6c6cb4de4 Mon Sep 17 00:00:00 2001 From: 12Gustavo21 Date: Tue, 26 Mar 2024 17:12:01 -0300 Subject: [PATCH] feat: setClicked after Spoo finished talking --- src/assets/components/friend/index.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/assets/components/friend/index.js b/src/assets/components/friend/index.js index e1e9cd3..11aec06 100644 --- a/src/assets/components/friend/index.js +++ b/src/assets/components/friend/index.js @@ -62,6 +62,9 @@ export default function Friend() { setTimeout(() => { setMessage("Put the music on, and enjoy!"); }, 12000); + setTimeout(() => { + setClicked(false); + }, 14000); } else if (getLocation() === "about") { setMessage("This is the about page!"); setTimeout(() => { @@ -73,6 +76,9 @@ export default function Friend() { setTimeout(() => { setMessage("He loves to code!"); }, 8000); + setTimeout(() => { + setClicked(false); + }, 10000); } else if (getLocation() === "techStack") { setMessage("This is the tech stack page!"); setTimeout(() => { @@ -84,6 +90,9 @@ export default function Friend() { setTimeout(() => { setMessage("He also loves to use styled-components!"); }, 8000); + setTimeout(() => { + setClicked(false); + }, 10000); } else if (getLocation() === "projects") { setMessage("This is the projects page!"); setTimeout(() => { @@ -95,6 +104,9 @@ export default function Friend() { setTimeout(() => { setMessage("He is always learning new things!"); }, 8000); + setTimeout(() => { + setClicked(false); + }, 10000); } else if (getLocation() === "contact") { setMessage("This is the contact page!"); setTimeout(() => { @@ -106,6 +118,9 @@ export default function Friend() { setTimeout(() => { setMessage("He is always open to new opportunities!"); }, 8000); + setTimeout(() => { + setClicked(false); + }, 10000); } } };