mirror of
https://github.com/hazemKrimi/personal-website.git
synced 2026-05-01 18:00:26 +00:00
Update buttons styles
This commit is contained in:
@@ -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>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user