|
@@ -3,7 +3,8 @@ import "./App.css";
|
|
|
import Header from "./Header/header";
|
|
|
import Navigation from "./Content/Navigation/navigation";
|
|
|
import News from "./Content/News/news";
|
|
|
-import { Redirect, Route, Router, Switch } from "react-router-dom";
|
|
|
+import { Redirect, Route, BrowserRouter as Router, Switch } from "react-router-dom";
|
|
|
+// import { Redirect, Route, Router, Switch } from "react-router-dom";
|
|
|
import Music from "./Content/Music/music";
|
|
|
import Profile from "./Content/Profile/profile";
|
|
|
import Settings from "./Content/Settings/settings";
|
|
@@ -16,6 +17,11 @@ import { store } from "./Redux/promise_reducer";
|
|
|
import { Provider } from "react-redux";
|
|
|
import history from "./history";
|
|
|
|
|
|
+function fff(a) {
|
|
|
+ console.log(a)
|
|
|
+ return <div>Пусто</div>
|
|
|
+}
|
|
|
+
|
|
|
function App() {
|
|
|
return (
|
|
|
<Provider store={store}>
|
|
@@ -27,9 +33,9 @@ function App() {
|
|
|
<Navigation />
|
|
|
|
|
|
<div className="app-wrapper-content">
|
|
|
- {/* <Redirect exact from="/" to="/profile" /> */}
|
|
|
<Switch>
|
|
|
- {/* <Route
|
|
|
+ <Redirect exact from="/" to="/profile" />
|
|
|
+ <Route
|
|
|
path="/profile"
|
|
|
render={() => <Profile />}
|
|
|
/>
|
|
@@ -44,12 +50,13 @@ function App() {
|
|
|
<Route
|
|
|
path="/404"
|
|
|
render={() => <Page404 /> }
|
|
|
- /> */}
|
|
|
+ />
|
|
|
<Route path="/news" component={News} />
|
|
|
<Route path="/music" component={Music} />
|
|
|
<Route path="/settings" component={Settings} />
|
|
|
<Route path="/login" component={Login} />
|
|
|
<Route path="/registration" component={Registration} />
|
|
|
+ <Route component={fff} />
|
|
|
</Switch>
|
|
|
</div>
|
|
|
</div>
|