File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import Footer from "./components/section-components/Footer";
3
3
import Header from "./components/section-components/Header" ;
4
4
import './styles/index.css' ;
5
5
import Careers from "./views/Careers" ;
6
+ import Discord from "./views/Discord" ;
6
7
import LandingPage from "./views/LandingPage" ;
7
8
import Products from "./views/Products" ;
8
9
import Team from "./views/Team" ;
@@ -18,6 +19,8 @@ function App() {
18
19
< Route path = "/team" exact component = { Team } />
19
20
< Route path = "/products" exact component = { Products } />
20
21
< Route path = "/careers" exact component = { Careers } />
22
+ { /* route for re-directing to the discord server */ }
23
+ < Route path = "/discord" exact component = { Discord } />
21
24
</ BrowserRouter >
22
25
{ /* footer component */ }
23
26
< Footer />
Original file line number Diff line number Diff line change
1
+ import React , { useEffect } from 'react' ;
2
+
3
+ export default function Discord ( ) {
4
+ useEffect ( ( ) => {
5
+ window . location . href = "https://discord.gg/sETEXAsWhR" ;
6
+ } , [ ] ) ;
7
+ return (
8
+ < div className = "discord-view" >
9
+ Redirecting to The DesignSystems' Discord Server...
10
+ </ div >
11
+ )
12
+ }
You can’t perform that action at this time.
0 commit comments