Refactor BrandLogo component to use spread operator for props

This commit is contained in:
Ricardo Tribaldos 2024-03-29 18:00:26 -05:00
parent 7accf5ac2e
commit e19f34fb87

View file

@ -1,12 +1,8 @@
---
const { width } = Astro.props;
interface Props {
width: string;
}
---
<svg class=`h-auto ${width}` viewBox="0 0 521 226" fill="none">
<svg
{...Astro.props}
viewBox="0 0 521 226"
fill="none"
>
<rect
width="78.937"
height="18.485"

Before

Width:  |  Height:  |  Size: 5.6 KiB

After

Width:  |  Height:  |  Size: 5.5 KiB