diff --git a/src/containers/AppRouter.js b/src/containers/AppRouter.js
index 2221cbe..0c37b94 100644
--- a/src/containers/AppRouter.js
+++ b/src/containers/AppRouter.js
@@ -1,16 +1,21 @@
import React from 'react';
import { BrowserRouter, Route, Switch } from 'react-router-dom';
-import Layout from './Layout';
+import Home from './Home';
import NotFound from './NotFound';
+import Search from './Search';
+import Navbar from './Navbar';
const AppRouter = () => (
-
-
-
-
-
+ <>
+
+
+
+
+
+
+ >
);
diff --git a/src/containers/Layout.js b/src/containers/Home.js
similarity index 88%
rename from src/containers/Layout.js
rename to src/containers/Home.js
index c1ef949..1914ced 100644
--- a/src/containers/Layout.js
+++ b/src/containers/Home.js
@@ -7,13 +7,12 @@ import Movie from '../components/Movie/Movie';
import Modal from '../components/UI/Modal';
import MovieDetails from '../components/Movie/MovieDetails';
-class Layout extends Component {
-
+class Home extends Component {
state = {
/** Toggles the movie list when the user starts typing. */
toggleMovieList: true,
/** An array that will hold all of our movie Components. */
- MovieList: [],
+ // MovieList: [],
/** Toggles the modal when a movie is clicked. */
toggleModal: false,
/** Holds the movie information for a single movie. */
@@ -58,9 +57,12 @@ class Layout extends Component {
/** Get the user input */
onSearchHandler = (event) => {
/** Display the movie list. */
- this.setState({
- toggleMovieList: false
- });
+ // navigate to search comp
+ // this.props.history.push('/search)
+ this.props.history.push('/search')
+ // this.setState({
+ // toggleMovieList: false
+ // });
const userInput = event.target.value;
/** Pass in the user input to make the API call. */
@@ -106,8 +108,11 @@ class Layout extends Component {
render() {
return (