Update buttons styles

This commit is contained in:
Hazem Krimi
2021-01-08 19:05:27 +01:00
parent 0e174d3278
commit f4286faef3
2 changed files with 11 additions and 8 deletions
+3 -4
View File
@@ -12,13 +12,12 @@ const Btn = styled.button`
background: none;
border: none;
color: none;
outline: none;
`;
const IconButton: FC<Props> = ({ icon, onClick }) => {
const IconButton: FC<Props & { className?: string }> = ({ icon, onClick, className }) => {
return (
<Btn onClick={onClick}>
<Image src={icon} alt='Icon Button' width={24} height={24} />
<Btn onClick={onClick} className={className}>
<Image src={icon} width={24} height={24} />
</Btn>
);
};