From 8e7500c7cbaacdb8eac3b48e338023113c868a13 Mon Sep 17 00:00:00 2001 From: Little Dipper Date: Tue, 13 Jun 2023 13:36:01 +0200 Subject: [PATCH] error components --- containers/react/src/components/Messages/Alert.jsx | 13 +++++++++++++ containers/react/src/components/Messages/Chats.jsx | 8 +++++++- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 containers/react/src/components/Messages/Alert.jsx diff --git a/containers/react/src/components/Messages/Alert.jsx b/containers/react/src/components/Messages/Alert.jsx new file mode 100644 index 00000000..79a269ba --- /dev/null +++ b/containers/react/src/components/Messages/Alert.jsx @@ -0,0 +1,13 @@ +// import Alert from '@mui/material/Alert'; +// import Stack from '@mui/material/Stack'; + +function BasicAlert () { + return( + <> + // + // Check this out + // + ) +} + +export default BasicAlert \ No newline at end of file diff --git a/containers/react/src/components/Messages/Chats.jsx b/containers/react/src/components/Messages/Chats.jsx index 6922509e..01d6d6ee 100644 --- a/containers/react/src/components/Messages/Chats.jsx +++ b/containers/react/src/components/Messages/Chats.jsx @@ -235,10 +235,16 @@ function Chats(){ const findValue = () => { setFind(false); + console.log(friend); Rank.map((tab) => { if (tab.name === friend) + { + console.log("ok bon"); setFind(true); + } }) + console.log(find); + // if (!find) }; // console.log(`data user1= ${user.username}`) @@ -284,7 +290,7 @@ function Chats(){
- {find ? () : ("")} + {find ? ("") : ("")}