Skip to content

Commit

Permalink
fix(client): Message Page js->ts
Browse files Browse the repository at this point in the history
fixing #109
  • Loading branch information
roman-ojha committed Jun 29, 2022
1 parent 9af787e commit 8e6a1ba
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions client/src/pages/Message.js β†’ client/src/pages/Message.tsx
Expand Up @@ -5,21 +5,27 @@ import "../styles/components/messageBox.css";
import "../styles/pages/MessagePage.css";
import InnerUserMessage from "../components/MessagePage/InnerUserMessage";
import MessagesList from "../components/MessagePage/MessagesList";
import { mainPageMessageViewOnOff } from "../services/redux-actions/index";
// import { mainPageMessageViewOnOff } from "../services/redux-actions/index";
import OpenSideBarDrawerButton from "../components/OpenSideBarDrawerButton";
import OpenRightPartDrawerButton from "../components/OpenRightPartDrawerButton";
import { AppState, actionCreators } from "../services/redux";
import { bindActionCreators } from "redux";

const Message = () => {
const Message = (): JSX.Element => {
const dispatch = useDispatch();
const currentMessageStore = useSelector(
(state) => state.setCurrentUserMessageReducer
(state: AppState) => state.setCurrentUserMessageReducer
);
const mainPageInnerMessageBoxOnOffState = useSelector(
(state) => state.mainPageInnerMessageBoxOnOff
(state: AppState) => state.mainPageInnerMessageBoxOnOff
);
const { mainPageMessageViewOnOff } = bindActionCreators(
actionCreators,
dispatch
);

useEffect(() => {
dispatch(mainPageMessageViewOnOff(false));
mainPageMessageViewOnOff(false);
}, [dispatch]);

return (
Expand Down

0 comments on commit 8e6a1ba

Please sign in to comment.