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