From 63192ba4f4c57716cfe40e067d7958ee4f70b331 Mon Sep 17 00:00:00 2001 From: Hazem Krimi Date: Thu, 7 Jan 2021 14:45:52 +0100 Subject: [PATCH] Update icon button component --- components/IconButton.tsx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/components/IconButton.tsx b/components/IconButton.tsx index f714e0c..9e1b0d2 100644 --- a/components/IconButton.tsx +++ b/components/IconButton.tsx @@ -1,6 +1,10 @@ import { FC } from 'react'; import styled from 'styled-components'; import Image from 'next/image'; +interface Props { + icon: string; + onClick?: () => void; +} const Btn = styled.button` display: inline; @@ -11,11 +15,6 @@ const Btn = styled.button` outline: none; `; -export interface Props { - icon: string; - onClick?: () => void; -} - const IconButton: FC = ({ icon, onClick }) => { return (