chore: generate
This commit is contained in:
@@ -24,8 +24,7 @@ export default createHandler(
|
||||
const event = getRequestEvent() as PageEvent | undefined
|
||||
const locale = event ? localeFromRequest(event.request) : "en"
|
||||
const stylesheet = (event?.assets as Asset[] | undefined)?.find(
|
||||
(asset): asset is Extract<Asset, { tag: "link" }> =>
|
||||
asset.tag === "link" && asset.attrs.rel === "stylesheet",
|
||||
(asset): asset is Extract<Asset, { tag: "link" }> => asset.tag === "link" && asset.attrs.rel === "stylesheet",
|
||||
)
|
||||
const stylesheetHref = import.meta.env.DEV ? statsStylesheetUrl : stylesheet?.attrs.href
|
||||
|
||||
|
||||
@@ -83,10 +83,7 @@ export function ComparisonCardsSection(props: {
|
||||
|
||||
function FeaturedComparisonCard(props: { pair: ComparisonPair }) {
|
||||
return (
|
||||
<a
|
||||
data-component="compare-home-card"
|
||||
href={canonicalComparisonHref(props.pair.first, props.pair.second)}
|
||||
>
|
||||
<a data-component="compare-home-card" href={canonicalComparisonHref(props.pair.first, props.pair.second)}>
|
||||
<span data-slot="compare-home-card-head">
|
||||
<span>
|
||||
<strong>{props.pair.detail}</strong>
|
||||
|
||||
Reference in New Issue
Block a user