Skip to content

Commit

Permalink
feat(messaging): unresolved survey and announce
Browse files Browse the repository at this point in the history
  • Loading branch information
hunterMotko committed Feb 10, 2022
1 parent b428fee commit 112f416
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/context/MessagingContext.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
20 changes: 11 additions & 9 deletions src/views/GrowersView.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`;
Expand All @@ -18,14 +18,16 @@ function GrowersView() {
direction="column"
style={{ flexWrap: 'nowrap', height: '100%', overflow: 'hidden' }}
>
<GrowerProvider>
<SpeciesProvider>
<TagsProvider>
<GrowerFilterHeader />
<Growers />
</TagsProvider>
</SpeciesProvider>
</GrowerProvider>
<MessagingProvider>
<GrowerProvider>
<SpeciesProvider>
<TagsProvider>
<GrowerFilterHeader />
<Growers />
</TagsProvider>
</SpeciesProvider>
</GrowerProvider>
</MessagingProvider>
</Grid>
);
}
Expand Down

0 comments on commit 112f416

Please sign in to comment.