chore(blog): reorder PostRow props to group required before optional
Code review nit: searchText (required) was appended after the optional deck/tag, breaking the required-then-optional convention used by the rest of the interface. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
cc04ea7753
commit
9158207657
1 changed files with 2 additions and 2 deletions
|
|
@ -3,12 +3,12 @@ interface Props {
|
||||||
date: string;
|
date: string;
|
||||||
title: string;
|
title: string;
|
||||||
href: string;
|
href: string;
|
||||||
|
searchText: string;
|
||||||
deck?: string;
|
deck?: string;
|
||||||
tag?: string;
|
tag?: string;
|
||||||
searchText: string;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const { date, title, href, deck, tag, searchText } = Astro.props;
|
const { date, title, href, searchText, deck, tag } = Astro.props;
|
||||||
---
|
---
|
||||||
|
|
||||||
<a class="postrow" href={href} data-search={searchText}>
|
<a class="postrow" href={href} data-search={searchText}>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue