dispatch/client/js/components/ui/Navicon.js
Ken-Håvard Lieng b002eef285 Fix navicon
2020-04-30 14:36:30 +02:00

20 lines
407 B
JavaScript

import React from 'react';
import { FiMenu } from 'react-icons/fi';
import { useDispatch } from 'react-redux';
import Button from 'components/ui/Button';
import { toggleMenu } from 'state/ui';
const Navicon = () => {
const dispatch = useDispatch();
return (
<Button
className="navicon"
icon={FiMenu}
onClick={() => dispatch(toggleMenu())}
/>
);
};
export default Navicon;