From 112f416a4f6f5debe0615cc468587a4ce3c1e156 Mon Sep 17 00:00:00 2001 From: hunterMotko Date: Tue, 7 Dec 2021 14:57:19 -0500 Subject: [PATCH] feat(messaging): unresolved survey and announce --- src/context/MessagingContext.js | 2 +- src/views/GrowersView.js | 20 +++++++++++--------- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/src/context/MessagingContext.js b/src/context/MessagingContext.js index 3cb86244b..6616a5ef1 100644 --- a/src/context/MessagingContext.js +++ b/src/context/MessagingContext.js @@ -21,7 +21,7 @@ export const MessagingProvider = (props) => { const [messages, setMessages] = useState([]); const [growerMessage, setGrowerMessage] = useState({}); const user = JSON.parse(localStorage.getItem('user')); - console.log(user); + const groupMessageByHandle = (rawMessages) => { // make key of recipients name and group messages together let newMessages = rawMessages diff --git a/src/views/GrowersView.js b/src/views/GrowersView.js index 3d44dc5bb..dc02405ee 100644 --- a/src/views/GrowersView.js +++ b/src/views/GrowersView.js @@ -4,9 +4,9 @@ import { Grid } from '@material-ui/core'; import Growers from '../components/Growers/Growers.js'; import { GrowerProvider } from '../context/GrowerContext'; import { SpeciesProvider } from '../context/SpeciesContext'; +import { MessagingProvider } from 'context/MessagingContext'; import { TagsProvider } from '../context/TagsContext'; import GrowerFilterHeader from '../components/GrowerFilterHeader'; - function GrowersView() { useEffect(() => { document.title = `Growers - ${documentTitle}`; @@ -18,14 +18,16 @@ function GrowersView() { direction="column" style={{ flexWrap: 'nowrap', height: '100%', overflow: 'hidden' }} > - - - - - - - - + + + + + + + + + + ); }