From 3dc4c14e4ce77a82dfe62b7d97d4798ba2d72f39 Mon Sep 17 00:00:00 2001 From: H Date: Wed, 19 Jul 2023 10:54:10 +1000 Subject: [PATCH] Updated Comments about Discord redirect Error message --- src/pages/discord.jsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/pages/discord.jsx b/src/pages/discord.jsx index c256fdf..830fc68 100644 --- a/src/pages/discord.jsx +++ b/src/pages/discord.jsx @@ -3,6 +3,13 @@ // import {useEffect} from 'react' export default function redirect() { + /* + // After ChakraUI Addition: Error: + ./src/pages/discord.jsx + 5:5 Error: React Hook "useEffect" is called in function "redirect" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use". react-hooks/rules-of-hooks + + // TODO: Reimplement. + */ // useEffect(() => { // window.location.assign('https://discord.gg/b3HAykQPkn') // })