sdy

update CategoryPresenter

import React from "react";
import React, { useEffect } from "react";
import styled from "styled-components";
import { Link } from "react-router-dom";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
......@@ -62,9 +62,10 @@ const StyledLink = styled(Link)`
}
`;
export default ({ location, categories }) => {
export default ({ location, categories, subscribeToNewCategory }) => {
const { pathname } = location;
let path;
useEffect(() => subscribeToNewCategory(), []);
return (
<>
<CategoryContainer>
......