From acd16c03ea4a278d4394590dbe106ca1a4f6fa20 Mon Sep 17 00:00:00 2001
From: danieldeng2 <danieldeng223@gmail.com>
Date: Mon, 3 Aug 2020 11:56:17 +0100
Subject: [PATCH] Refactor components to index.tsx

---
 frontend/src/components/App.tsx                             | 6 +++---
 .../organisms/BottomBar/{BottomBar.tsx => index.tsx}        | 0
 .../components/organisms/LeftBar/{LeftBar.tsx => index.tsx} | 0
 .../components/organisms/TopBar/{TopBar.tsx => index.tsx}   | 0
 4 files changed, 3 insertions(+), 3 deletions(-)
 rename frontend/src/components/organisms/BottomBar/{BottomBar.tsx => index.tsx} (100%)
 rename frontend/src/components/organisms/LeftBar/{LeftBar.tsx => index.tsx} (100%)
 rename frontend/src/components/organisms/TopBar/{TopBar.tsx => index.tsx} (100%)

diff --git a/frontend/src/components/App.tsx b/frontend/src/components/App.tsx
index c8e5593ca..cc6e00907 100644
--- a/frontend/src/components/App.tsx
+++ b/frontend/src/components/App.tsx
@@ -2,8 +2,8 @@ import React from "react";
 import "./App.scss";
 import ExamplePage from "./templates/ExamplePage";
 
-import TopBar from "./organisms/TopBar/TopBar";
-import BottomBar from "./organisms/BottomBar/BottomBar";
+import TopBar from "./organisms/TopBar";
+import BottomBar from "./organisms/BottomBar";
 import { Redirect, Switch, Route } from "react-router-dom";
 import {
   faBookOpen,
@@ -11,7 +11,7 @@ import {
   faCalendarWeek,
   faChalkboardTeacher,
 } from "@fortawesome/free-solid-svg-icons";
-import LeftBar from "./organisms/LeftBar/LeftBar";
+import LeftBar from "./organisms/LeftBar";
 
 const App: React.FC = () => {
   const horizontalBarPages = [
diff --git a/frontend/src/components/organisms/BottomBar/BottomBar.tsx b/frontend/src/components/organisms/BottomBar/index.tsx
similarity index 100%
rename from frontend/src/components/organisms/BottomBar/BottomBar.tsx
rename to frontend/src/components/organisms/BottomBar/index.tsx
diff --git a/frontend/src/components/organisms/LeftBar/LeftBar.tsx b/frontend/src/components/organisms/LeftBar/index.tsx
similarity index 100%
rename from frontend/src/components/organisms/LeftBar/LeftBar.tsx
rename to frontend/src/components/organisms/LeftBar/index.tsx
diff --git a/frontend/src/components/organisms/TopBar/TopBar.tsx b/frontend/src/components/organisms/TopBar/index.tsx
similarity index 100%
rename from frontend/src/components/organisms/TopBar/TopBar.tsx
rename to frontend/src/components/organisms/TopBar/index.tsx
-- 
GitLab