Commit b17f275a authored by Paul R Otto's avatar Paul R Otto

Converted about page to a component following gothree-frontend branch example

parent 7d519f79
Pipeline #3241 passed with stage
in 2 minutes and 31 seconds
import HomePage from './HomePage';
import AboutPage from './AboutPage';
export { HomePage };
export { HomePage, AboutPage };
import { HomePage } from './Pages';
import { HomePage, AboutPage } from './Pages';
export { HomePage };
export { HomePage, AboutPage };
......@@ -2,8 +2,7 @@ import React from 'react';
import ReactDOM from 'react-dom';
import { HashRouter, Route, Link } from 'react-router-dom';
import { HomePage } from './Components';
import { ABoutPage } from './Components';
import { HomePage, AboutPage } from './Components';
const Dhaynes = () => <p>dhaynes</p>;
......@@ -22,7 +21,7 @@ const App = () => (
</ul>
<Route path="/" exact component={HomePage} />
<Route path="/dhaynes" component={Dhaynes} />
<Route path="/About" component={AboutPage} />
<Route path="/about" component={AboutPage} />
</div>
);
......
......@@ -3,6 +3,5 @@ from . import views
urlpatterns = [
path('', views.index),
path('about/', views.about),
]
......@@ -3,5 +3,3 @@ from django.shortcuts import render
def index(request):
return render(request, 'index.html')
def about(request):
return render(request, 'about.html')
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment