Skip to content

Commit

Permalink
fix(client): MessagePage SendMessage 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 f2fabec commit d271794
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 10 deletions.
@@ -1,10 +1,11 @@
import React from "react";
import { useSelector } from "react-redux";
import User_Profile_Icon from "../../assets/svg/User_profile_Icon.svg";
import { AppState } from "../../services/redux";

const SingleMessage = (props) => {
const SingleMessage = (props): JSX.Element => {
const userProfileDetailStore = useSelector(
(state) => state.setUserProfileDetailReducer
(state: AppState) => state.setUserProfileDetailReducer
);
return (
<>
Expand Down
2 changes: 1 addition & 1 deletion client/src/pages/Home.tsx
Expand Up @@ -8,7 +8,7 @@ import OpenRightPartDrawerButton from "../components/OpenRightPartDrawerButton";
import UserPostField from "../components/HomePage/UserPostField";
import ReturnHomePageFeed from "../components/HomePage/ReturnHomePageFeed";

const Home = () => {
const Home = (): JSX.Element => {
return (
<>
<LoadingSpinner />
Expand Down
2 changes: 1 addition & 1 deletion client/src/pages/Index.tsx
Expand Up @@ -21,7 +21,7 @@ import { toastError } from "../services/toast";
import { bindActionCreators } from "redux";
import { actionCreators } from "../services/redux";

const Index = () => {
const Index = (): JSX.Element => {
const dispatch = useDispatch();
const history = useHistory();
const [renderMainPage, setRenderMainPage] = useState<boolean>(false);
Expand Down
2 changes: 1 addition & 1 deletion client/src/pages/Page404.tsx
Expand Up @@ -2,7 +2,7 @@ import React from "react";
import "../styles/pages/page404.css";
import { useHistory } from "react-router-dom";

const Page404 = () => {
const Page404 = (): JSX.Element => {
const history = useHistory();
return (
<>
Expand Down
2 changes: 1 addition & 1 deletion client/src/pages/Setting.tsx
Expand Up @@ -11,7 +11,7 @@ import ChangeDisplayName from "../components/SettingPage/ChangeDisplayName";
import ChangePassword from "../components/SettingPage/ChangePassword";
import DeleteProfile from "../components/SettingPage/DeleteProfile";

const Setting = () => {
const Setting = (): JSX.Element => {
return (
<>
<LoadingSpinner />
Expand Down
2 changes: 1 addition & 1 deletion client/src/pages/SignIn.tsx
Expand Up @@ -13,7 +13,7 @@ import { toastError, toastInfo } from "../services/toast";
import constant from "../constant/constant";
import { AxiosError } from "axios";

const SignIn = () => {
const SignIn = (): JSX.Element => {
const dispatch = useDispatch();
const [signInDetail, setSignInDetail] = useState({
email: "",
Expand Down
2 changes: 1 addition & 1 deletion client/src/pages/SignUp.tsx
Expand Up @@ -13,7 +13,7 @@ import { toastError, toastSuccess, toastWarn } from "../services/toast";
import constant from "../constant/constant";

let previousSelectGenderElement: HTMLDivElement;
const SignUp = () => {
const SignUp = (): JSX.Element => {
const dispatch = useDispatch();
const history = useHistory();
let today = new Date();
Expand Down
2 changes: 1 addition & 1 deletion client/src/pages/Stories.tsx
Expand Up @@ -7,7 +7,7 @@ import { NavLink, useHistory } from "react-router-dom";
import { Helmet } from "react-helmet";
import { AppState } from "../services/redux";

const Stories = () => {
const Stories = (): JSX.Element => {
const history = useHistory();
const userStoriesStore = useSelector(
(state: AppState) => state.userStoriesReducer
Expand Down
2 changes: 1 addition & 1 deletion client/src/pages/Video.tsx
Expand Up @@ -15,7 +15,7 @@ import { AppState, actionCreators } from "../services/redux";
import ResponseObject from "src/interface/responseObject";
import { VideoPageState } from "src/services/redux/pages/video/types";

const Video = () => {
const Video = (): JSX.Element => {
const dispatch = useDispatch();
const videoPageData = useSelector(
(state: AppState) => state.videoPageDataReducer
Expand Down

0 comments on commit d271794

Please sign in to comment.