Skip to content

Commit

Permalink
fix(client): MessagePage InnerUserMessage js->ts
Browse files Browse the repository at this point in the history
fixing #109
  • Loading branch information
roman-ojha committed Jun 30, 2022
1 parent 8e6a1ba commit 4a5175b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,20 @@ import React from "react";
import { useSelector, useDispatch } from "react-redux";
import CloseIcon from "@mui/icons-material/Close";
import User_Profile_Icon from "../../assets/svg/User_profile_Icon.svg";
import { mainPageMessageInnerViewOnOff } from "../../services/redux-actions/index";
// import { mainPageMessageInnerViewOnOff } from "../../services/redux-actions/index";
import SingleMessage from "./SingleMessage";
import SendMessageInputField from "./SendMessageInputField";
import { AppState, actionCreators } from "../../services/redux";
import { bindActionCreators } from "redux";

const InnerUserMessage = (props) => {
const InnerUserMessage = (props): JSX.Element => {
const dispatch = useDispatch();
const currentMessageStore = useSelector(
(state) => state.setCurrentUserMessageReducer
(state: AppState) => state.setCurrentUserMessageReducer
);
const { mainPageMessageInnerViewOnOff } = bindActionCreators(
actionCreators,
dispatch
);

// Styling Loading Spinner
Expand Down Expand Up @@ -47,7 +53,7 @@ const InnerUserMessage = (props) => {
className="MessageBox_InnerMessage_Upper_Part_Close_Button"
style={{ width: "1.2rem", height: "1.2rem" }}
onClick={() => {
dispatch(mainPageMessageInnerViewOnOff(false));
mainPageMessageInnerViewOnOff(false);
}}
/>
</div>
Expand Down
1 change: 0 additions & 1 deletion controllers/storage.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,6 @@ export default {
}
}
if (!req.file) {
console.log("not picture");
const resData = await userDetail.updateOne(
{ email: email },
{
Expand Down

0 comments on commit 4a5175b

Please sign in to comment.