Refactor BrandLogo component to use spread operator for props
This commit is contained in:
parent
7accf5ac2e
commit
e19f34fb87
1 changed files with 5 additions and 9 deletions
|
|
@ -1,12 +1,8 @@
|
||||||
---
|
<svg
|
||||||
const { width } = Astro.props;
|
{...Astro.props}
|
||||||
|
viewBox="0 0 521 226"
|
||||||
interface Props {
|
fill="none"
|
||||||
width: string;
|
>
|
||||||
}
|
|
||||||
---
|
|
||||||
|
|
||||||
<svg class=`h-auto ${width}` viewBox="0 0 521 226" fill="none">
|
|
||||||
<rect
|
<rect
|
||||||
width="78.937"
|
width="78.937"
|
||||||
height="18.485"
|
height="18.485"
|
||||||
|
|
|
||||||
|
Before Width: | Height: | Size: 5.6 KiB After Width: | Height: | Size: 5.5 KiB |
Loading…
Add table
Reference in a new issue