Skip to content

Commit

Permalink
Merge pull request #14 from DesignSystemsOSS/development
Browse files Browse the repository at this point in the history
Discord link re-direction added
  • Loading branch information
yashsehgal authored Sep 18, 2021
2 parents 77b021a + 4d084d0 commit a6c5195
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import Footer from "./components/section-components/Footer";
import Header from "./components/section-components/Header";
import './styles/index.css';
import Careers from "./views/Careers";
import Discord from "./views/Discord";
import LandingPage from "./views/LandingPage";
import Products from "./views/Products";
import Team from "./views/Team";
Expand All @@ -18,6 +19,8 @@ function App() {
<Route path="/team" exact component={Team} />
<Route path="/products" exact component={Products} />
<Route path="/careers" exact component={Careers} />
{/* route for re-directing to the discord server */}
<Route path="/discord" exact component={Discord} />
</BrowserRouter>
{/* footer component */}
<Footer />
Expand Down
12 changes: 12 additions & 0 deletions src/views/Discord/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import React, { useEffect } from 'react';

export default function Discord() {
useEffect(() => {
window.location.href = "https://discord.gg/sETEXAsWhR";
}, []);
return (
<div className="discord-view">
Redirecting to The DesignSystems' Discord Server...
</div>
)
}

1 comment on commit a6c5195

@vercel
Copy link

@vercel vercel bot commented on a6c5195 Sep 18, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.