Skip to content

Commit

Permalink
refactored code base
Browse files Browse the repository at this point in the history
  • Loading branch information
wisdomekpotu committed May 20, 2022
1 parent 3556d89 commit 7b97dca
Show file tree
Hide file tree
Showing 54 changed files with 1,122 additions and 1,424 deletions.
File renamed without changes.
File renamed without changes.
Binary file removed public/google (2).png
Binary file not shown.
23 changes: 11 additions & 12 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
import React from 'react';
import './App.css';
import { Routes, Route } from "react-router-dom";
import Homepage from './pages/Homepage';
import Onboard from "./pages/Onboard"
import Feed from "./pages/Feed"
import Dashboard from "./pages/Dashboard"
import ProtectedRoute from './Protect/ProtectedRoute';
import Tos from "./pages/Tos"
import Write from './pages/Write';
import NotFound from "./pages/NotFound"
import Homepage from './pages/homepage';
import Onboard from "./pages/onboard"
import Feed from "./pages/feed"
import Dashboard from "./pages/dashboard"
import ProtectedRoute from './protect/ProtectedRoute';
import Tos from "./pages/tos"
import Write from './pages/write';
import NotFound from "./pages/notfound"
import Article from "./components/Article/Article"
import UserProfile from './pages/UserProfile';
import { useUserAuth } from './context/UserAuthContext'


Expand All @@ -25,13 +24,13 @@ function App() {
<Route path='/' element={<Homepage />} />
<Route path='/dashboard' element={<ProtectedRoute> <Dashboard /> </ProtectedRoute>} />

{user ? (
{ user ? (
null
) : <Route path='/onboard' element={<Onboard />} />}
) : <Route path='/onboard' element={<Onboard />} />
}

<Route path='/feed/article/:id' element={<Article />} />
<Route path='/feed' element={<Feed />} />
<Route path='/author/:createdBy' element={<UserProfile />} />
<Route path='/create/story/' element={<ProtectedRoute> <Write /> </ProtectedRoute>} />
<Route path='/legal/terms-of-service-agreement' element={<Tos />} />
<Route path="*" element={<NotFound />} />
Expand Down
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
211 changes: 0 additions & 211 deletions src/components/Article/AddArticle.js

This file was deleted.

Loading

0 comments on commit 7b97dca

Please sign in to comment.