Skip to content

Commit

Permalink
fix(client): removed all old action import from Home,ProfileComp
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-ojha committed Jul 9, 2022
1 parent acc2bb4 commit 711d3c8
Show file tree
Hide file tree
Showing 10 changed files with 1 addition and 37 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React from "react";
import { useDispatch, useSelector } from "react-redux";
// import { homePageUserPostFieldDataAction } from "../../../services/redux-actions";
import { Picker } from "emoji-mart";
import { bindActionCreators } from "redux";
import { AppState, actionCreators } from "../../../services/redux";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
import React, { useEffect } from "react";
import { useDispatch, useSelector } from "react-redux";
// import {
// homePageUserPostFieldDataAction,
// displayUserPostFieldEmojiPicker,
// } from "../../../services/redux-actions";
import { Icon } from "@iconify/react";
import { toastInfo } from "../../../services/toast";
import { bindActionCreators } from "redux";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React from "react";
// import { homePageUserPostFieldDataAction } from "../../../services/redux-actions";
import { useDispatch, useSelector } from "react-redux";
import { bindActionCreators } from "redux";
import { AppState, actionCreators } from "../../../services/redux";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
import React from "react";
import { useHistory } from "react-router-dom";
import { useDispatch, useSelector } from "react-redux";
// import {
// profilePageDataAction,
// setRootUserProfileDataState,
// } from "../../../services/redux-actions";
import { useSelector } from "react-redux";
import User_Profile_Icon from "../../../assets/svg/User_profile_Icon.svg";
import FilePicker from "./FilePicker";
import EmojiMart from "./EmojiMart";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
import React from "react";
import { useDispatch, useSelector } from "react-redux";
// import {
// userPostResponseData,
// homePageUserPostFieldDataAction,
// showLoadingSpinner,
// setHomePagePostFieldViewValue,
// } from "../../../services/redux-actions";
import { Icon } from "@iconify/react";
import Api from "../../../services/api/pages/homeApi";
import { toastError, toastSuccess } from "../../../services/toast";
Expand Down
5 changes: 0 additions & 5 deletions client/src/components/HomePage/MinViewPostField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@ import { Helmet } from "react-helmet";
import User_Profile_Icon from "../../assets/svg/User_profile_Icon.svg";
import { useSelector, useDispatch } from "react-redux";
import { useHistory } from "react-router-dom";
// import {
// setHomePagePostFieldViewValue,
// profilePageDataAction,
// setRootUserProfileDataState,
// } from "../../services/redux-actions";
import constant from "../../constant/constant";
import { bindActionCreators } from "redux";
import { AppState, actionCreators } from "../../services/redux";
Expand Down
1 change: 0 additions & 1 deletion client/src/components/MainPageStoryComp/AddStory.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React from "react";
import { Icon } from "@iconify/react";
import User_Profile_Icon from "../../assets/svg/User_profile_Icon.svg";
// import { setHomePagePostFieldViewValue } from "../../services/redux-actions";
import { useDispatch, useSelector } from "react-redux";
import { useHistory } from "react-router-dom";
import { AppState, actionCreators } from "../../services/redux";
Expand Down
1 change: 0 additions & 1 deletion client/src/components/MainPageStoryComp/FriendStory.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React from "react";
import User_Profile_Icon from "../../assets/svg/User_profile_Icon.svg";
// import { storyIndex } from "../../services/redux-actions";
import { useHistory } from "react-router-dom";
import { useDispatch } from "react-redux";
import { bindActionCreators } from "redux";
Expand Down
8 changes: 0 additions & 8 deletions client/src/components/ProfilePage/UserInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,6 @@ import React from "react";
import User_Profile_Icon from "../../assets/svg/User_profile_Icon.svg";
import { useSelector, useDispatch } from "react-redux";
import { Icon } from "@iconify/react";
// import {
// mainPageMessageViewOnOff,
// mainPageMessageInnerViewOnOff,
// currentUserMessageAction,
// startProgressBar,
// stopProgressBar,
// profilePageDataAction,
// } from "../../services/redux-actions";
import { instance as axios } from "../../services/axios";
import { toastError } from "../../services/toast";
import { useHistory } from "react-router-dom";
Expand Down
5 changes: 0 additions & 5 deletions client/src/components/ProfilePage/UserPosts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@ import PostBox from "../PostBox/PostBox";
import { useSelector, useDispatch } from "react-redux";
import profileApi from "../../services/api/pages/profileApi";
import { toastError } from "../../services/toast";
// import {
// setRootUserProfileDataState,
// setRootUserPostData,
// profilePageDataAction,
// } from "../../services/redux-actions";
import { bindActionCreators } from "redux";
import { AppState, actionCreators } from "../../services/redux";
import { AxiosError } from "axios";
Expand Down

0 comments on commit 711d3c8

Please sign in to comment.