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 @@
|
|||
---
|
||||
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 |
Loading…
Add table
Reference in a new issue