|
@@ -2,12 +2,12 @@ import React from "react";
|
|
|
import "./App.css";
|
|
|
import Header from "./Header/header";
|
|
|
import Navigation from "./Content/Navigation/navigation";
|
|
|
-import Messages from "./Content/Messages/messages";
|
|
|
import News from "./Content/News/news";
|
|
|
import { Redirect, Route } from "react-router-dom";
|
|
|
import Music from "./Content/Music/music";
|
|
|
import Profile from "./Content/Profile/profile";
|
|
|
import Settings from "./Content/Settings/settings";
|
|
|
+import MessagesContainer from "./Content/Messages/messagesContainer";
|
|
|
|
|
|
function App(props) {
|
|
|
return (
|
|
@@ -21,13 +21,11 @@ function App(props) {
|
|
|
<Redirect exact from="/" to="/profile" />
|
|
|
<Route
|
|
|
path="/profile"
|
|
|
- render={() => <Profile profilePage={props.state.profilePage}
|
|
|
- dispatch={props.dispatch}
|
|
|
- />}
|
|
|
+ render={() => <Profile store={props.store} />}
|
|
|
/>
|
|
|
<Route
|
|
|
path="/messages"
|
|
|
- render={() => <Messages store={props.store} />}
|
|
|
+ render={() => <MessagesContainer store={props.store} />}
|
|
|
/>
|
|
|
<Route path="/news" component={News} />
|
|
|
<Route path="/music" component={Music} />
|