Skip to content

Commit a6c5195

Browse files
authored
Merge pull request #14 from DesignSystemsOSS/development
Discord link re-direction added
2 parents 77b021a + 4d084d0 commit a6c5195

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

src/App.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import Footer from "./components/section-components/Footer";
33
import Header from "./components/section-components/Header";
44
import './styles/index.css';
55
import Careers from "./views/Careers";
6+
import Discord from "./views/Discord";
67
import LandingPage from "./views/LandingPage";
78
import Products from "./views/Products";
89
import Team from "./views/Team";
@@ -18,6 +19,8 @@ function App() {
1819
<Route path="/team" exact component={Team} />
1920
<Route path="/products" exact component={Products} />
2021
<Route path="/careers" exact component={Careers} />
22+
{/* route for re-directing to the discord server */}
23+
<Route path="/discord" exact component={Discord} />
2124
</BrowserRouter>
2225
{/* footer component */}
2326
<Footer />

src/views/Discord/index.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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+
}

0 commit comments

Comments
 (0)