This commit is contained in:
Kenneth Jannette
2025-02-27 07:54:21 -05:00
parent d208189515
commit 51241e95e7
4 changed files with 6 additions and 7 deletions

1
.env
View File

@@ -1 +0,0 @@
PUBLIC_URL=http://www.findandexec.com/bb

View File

@@ -1,6 +1,6 @@
{ {
"name": "bb", "name": "browse",
"homepage": "http://www.execfunc.com/bb", "homepage": ".",
"version": "1.0", "version": "1.0",
"dependencies": { "dependencies": {
"babel-cli": "^6.26.0", "babel-cli": "^6.26.0",

View File

@@ -1,5 +1,5 @@
import React from "react"; import React from "react";
import { Router } from "react-router-dom"; import { BrowserRouter } from "react-router-dom";
import { Link, Route } from "react-router-dom"; import { Link, Route } from "react-router-dom";
import Bookshelf from "./Bookshelf"; import Bookshelf from "./Bookshelf";
import createHistory from "history/createBrowserHistory"; import createHistory from "history/createBrowserHistory";
@@ -56,7 +56,7 @@ class BooksApp extends React.Component {
render() { render() {
return ( return (
<Router history={history}> <BrowserRouter basename="/bb" history={history}>
<div className="app"> <div className="app">
<Route <Route
exact exact
@@ -81,7 +81,7 @@ class BooksApp extends React.Component {
<Link to="/search">Search for Books</Link> <Link to="/search">Search for Books</Link>
</div> </div>
</div> </div>
</Router> </BrowserRouter>
); );
} }
} }

View File

@@ -37,7 +37,7 @@ class SearchPage extends Component {
return ( return (
<div className="search-books"> <div className="search-books">
<div className="search-books-bar"> <div className="search-books-bar">
<Link className="close-search" to="/bb"> <Link className="close-search" to="/">
Close Close
</Link> </Link>
<div className="search-books-input-wrapper"> <div className="search-books-input-wrapper">