Move useMessage hook

This commit is contained in:
Jeremie Pardou-Piquemal 2021-06-25 14:38:40 +02:00 committed by Jérémie Pardou-Piquemal
parent 9960c0a941
commit 30fac0db1f
2 changed files with 3 additions and 3 deletions

View file

@ -4,8 +4,8 @@ import { atom, useRecoilState, useRecoilCallback } from "recoil";
import dayjs from "dayjs";
import { useUsers } from "../components/users";
import useC2C from "./useC2C";
import { useUsers } from "../users";
import useC2C from "../../hooks/useC2C";
export const MessagesAtom = atom({
key: "messages",

View file

@ -1,7 +1,7 @@
import React from "react";
import { useRecoilValue } from "recoil";
import useC2C from "../hooks/useC2C";
import { MessagesAtom } from "../hooks/useMessage";
import { MessagesAtom } from "../components/Message/useMessage";
import useTimeout from "../hooks/useTimeout";
import useSession from "../hooks/useSession";
import debounce from "lodash.debounce";