Skip to content

Commit

Permalink
fix(frontend): fix props destructure issue
Browse files Browse the repository at this point in the history
  • Loading branch information
royallsilwallz committed Jan 27, 2025
1 parent 56195e0 commit a076ed6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/components/svgIcons/twitter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export const TwitterIcon = (
noBg?: boolean;
},
) => {
const { ...rest } = props;
const { noBg, ...rest } = props;

return (
<svg
Expand All @@ -17,7 +17,7 @@ export const TwitterIcon = (
{...rest}
aria-label="Twitter"
>
{!props.noBg && <rect width="15" height="15" rx="1" fill="black" />}
{!noBg && <rect width="15" height="15" rx="1" fill="black" />}
<path
d="M8.54822 6.66248L12.644 2H11.6735L8.1156 6.04753L5.27595 2H2L6.29505 8.12111L2 13.01H2.97043L6.72541 8.7347L9.72488 13.01H13.0008L8.54822 6.66248ZM7.21864 8.17485L6.7828 7.56494L3.32038 2.71647H4.81116L7.60626 6.63082L8.04027 7.24073L11.6731 12.3285H10.1823L7.21864 8.17485Z"
fill="white"
Expand Down

0 comments on commit a076ed6

Please sign in to comment.