Update icon button component

This commit is contained in:
Hazem Krimi
2021-01-07 14:45:52 +01:00
parent 065413eaf5
commit 63192ba4f4
+4 -5
View File
@@ -1,6 +1,10 @@
import { FC } from 'react'; import { FC } from 'react';
import styled from 'styled-components'; import styled from 'styled-components';
import Image from 'next/image'; import Image from 'next/image';
interface Props {
icon: string;
onClick?: () => void;
}
const Btn = styled.button` const Btn = styled.button`
display: inline; display: inline;
@@ -11,11 +15,6 @@ const Btn = styled.button`
outline: none; outline: none;
`; `;
export interface Props {
icon: string;
onClick?: () => void;
}
const IconButton: FC<Props> = ({ icon, onClick }) => { const IconButton: FC<Props> = ({ icon, onClick }) => {
return ( return (
<Btn onClick={onClick}> <Btn onClick={onClick}>