Skip to content

Commit

Permalink
Discord Redirect - working - cleaned up comments
Browse files Browse the repository at this point in the history
  • Loading branch information
H authored and H committed Jul 19, 2023
1 parent 9810111 commit 4300c2a
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/pages/discord.jsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,8 @@
// pages/redirect
// redirect piperider.io/discord -> https://discord.gg/b3HAykQPkn

import { useEffect } from 'react'

export default function DiscordPage() {
/*
// 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 4300c2a

Please sign in to comment.