diff --git a/src/App.test.js b/src/App.test.js
deleted file mode 100644
index 1f03afe..0000000
--- a/src/App.test.js
+++ /dev/null
@@ -1,8 +0,0 @@
-import { render, screen } from '@testing-library/react';
-import App from './App';
-
-test('renders learn react link', () => {
- render();
- const linkElement = screen.getByText(/learn react/i);
- expect(linkElement).toBeInTheDocument();
-});
diff --git a/src/App.tsx b/src/App.tsx
index eb08c08..b9d50c1 100644
--- a/src/App.tsx
+++ b/src/App.tsx
@@ -1,19 +1,22 @@
-import React, { Suspense } from 'react';
+import { Suspense, lazy } from 'react';
import { BrowserRouter, Route, Switch } from 'react-router-dom';
import Layout from './components/Layout';
import './App.css';
-const index = React.lazy(() => import('./pages/index'));
-const initiatives = React.lazy(() => import('./pages/initiatives'));
-const involved = React.lazy(() => import('./pages/involved'));
-const mission = React.lazy(() => import('./pages/mission'));
-const news = React.lazy(() => import('./pages/news'));
-const newsarticle = React.lazy(() => import('./pages/newsarticle'));
-const notfound = React.lazy(() => import('./pages/404'));
-const officers = React.lazy(() => import('./pages/officers'));
-const committee = React.lazy(() => import('./pages/committee'));
-const classcouncil = React.lazy(() => import('./pages/classcouncil'));
+const classcouncil = lazy(() => import('./pages/classcouncil'));
+const committee = lazy(() => import('./pages/committee'));
+const feedback = lazy(() => import('./pages/feedback'));
+const index = lazy(() => import('./pages/index'));
+const initiatives = lazy(() => import('./pages/initiatives'));
+const involved = lazy(() => import('./pages/involved'));
+const mission = lazy(() => import('./pages/mission'));
+const news = lazy(() => import('./pages/news'));
+const newsarticle = lazy(() => import('./pages/newsarticle'));
+const newsletter = lazy(() => import('./pages/newsletter'));
+const notfound = lazy(() => import('./pages/404'));
+const officers = lazy(() => import('./pages/officers'));
+
const loading = (
Loading...
);
-const feedback = React.lazy(() => import('./pages/feedback'));
export default function App() {
return (
@@ -38,6 +40,7 @@ export default function App() {
+
diff --git a/src/components/Navbar.tsx b/src/components/Navbar.tsx
index c789eca..a4f5073 100644
--- a/src/components/Navbar.tsx
+++ b/src/components/Navbar.tsx
@@ -25,8 +25,8 @@ let pages = [
title: 'News',
},
{
- url: '#',
- title: 'Newsletter (In development!)',
+ url: '/newsletter',
+ title: 'Newsletter',
},
],
},
diff --git a/src/pages/newsletter.tsx b/src/pages/newsletter.tsx
new file mode 100644
index 0000000..56d9d17
--- /dev/null
+++ b/src/pages/newsletter.tsx
@@ -0,0 +1,23 @@
+import Centered from '../components/Centered';
+import Hero from '../components/Hero';
+import PrimaryHeader from '../components/PrimaryHeader';
+import { SGA_NEWSLETTER_EMBED_URL } from '../lib/constants';
+
+export default function Newsletter() {
+ return (
+ <>
+
+
+
+ SGA Newsletter
+
+
+
+ >
+ );
+}