add refresh for contact
Change-Id: Ie0105760ebda96463e8a112b459b7de014d79110
diff --git a/client/src/components/ConversationList.js b/client/src/components/ConversationList.js
index 6806781..1c8e3e0 100644
--- a/client/src/components/ConversationList.js
+++ b/client/src/components/ConversationList.js
@@ -1,13 +1,19 @@
import List from '@mui/material/List'
-import React from 'react'
+import React, { useEffect } from "react";
import ConversationListItem from './ConversationListItem'
import ListSubheader from '@mui/material/ListSubheader';
import Conversation from '../../../model/Conversation';
import { GroupRounded as GroupIcon } from '@mui/icons-material';
import Typography from '@mui/material/Typography';
+import { useAppSelector } from '../../redux/hooks';
export default function ConversationList(props) {
- console.log(props)
+ const { refresh } = useAppSelector((state) => state.app);
+
+ useEffect(() => {
+ console.log("refresh list");
+ }, [refresh]);
+
return (
<div className="rooms-list">
<List>