From 9eecfd8556ad4195d446318f34ac8b3443aaa9d5 Mon Sep 17 00:00:00 2001 From: Antoine Gaudron-desjardins <antoine.gaudrondesjardins@student-cs.fr> Date: Tue, 12 Jul 2022 16:24:33 +0200 Subject: [PATCH] info button --- frontend/src/components/Comments.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontend/src/components/Comments.js b/frontend/src/components/Comments.js index c536f85..4895343 100644 --- a/frontend/src/components/Comments.js +++ b/frontend/src/components/Comments.js @@ -88,6 +88,10 @@ export default function Messages({ place, infos }) { .then((res) => { setMessages(res.data); setLoading(false); + if (!width && infos && res.data.length) { + let otherIcon = document.getElementById("comments-icon-left"); + otherIcon.style.cssText = "border: 1px solid red"; + } }) .catch((e) => { console.log(e); -- GitLab