Skip to content

Commit

Permalink
Updated Comments about Discord redirect Error message
Browse files Browse the repository at this point in the history
  • Loading branch information
H authored and H committed Jul 19, 2023
1 parent 78d0447 commit 3dc4c14
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/pages/discord.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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')
// })
Expand Down

0 comments on commit 3dc4c14

Please sign in to comment.