Browse Source

folders fixing

pocu46 4 years ago
parent
commit
a0bfa3c09f

hipstagram/src/Content/Profile/My posts/my posts.css → hipstagram/src/Content/Profile/My posts/myPosts.css


+ 3 - 2
hipstagram/src/Content/Profile/My posts/my posts.js

@@ -1,7 +1,8 @@
 import React from 'react';
 import Post from './Post/post';
-import './my posts.css';
-import { addPostActionCreator, updateNewPostTextActionCreator } from '../../../Redux/state';
+import './myPosts.css';
+// import { addPostActionCreator, updateNewPostTextActionCreator } from '../../../Redux/state';
+import { addPostActionCreator, updateNewPostTextActionCreator } from '../../../Redux/state.js';
 // import { addPostActionCreator } from '../../../Redux/state';
 
 function MyPosts(props) {

+ 1 - 1
hipstagram/src/Content/Profile/profile.js

@@ -1,5 +1,5 @@
 import React from 'react';
-import MyPosts from './My posts/my posts';
+import MyPosts from './My posts/myPosts';
 import './profile.css';
 import ProfileInfo from './ProfileInfo/profileInfo';
 

+ 1 - 1
hipstagram/src/Redux/state.js

@@ -52,7 +52,7 @@ let store = {
 
 export const addPostActionCreator = () => ({ type: 'ADD-POST' });
 
-export const updateNewPostTextActionCreator = () {
+export const updateNewPostTextActionCreator = (text) => {
     return {
         type: 'UPDATE-NEW-POST-TEXT', 
         newText: text