Skip to content

Commit 96bd085

Browse files
committed
Fix warnings
1 parent cb118f2 commit 96bd085

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

apps/web/content/blog/build-time-components.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ This is [Code Hike](https://codehike.org)
6464

6565
The mdx loader will process `content.md` in several steps.
6666

67-
The first step is **transforming the source string into a markdown abstract syntax tree** (mdast).
67+
The first step is transforming the source string into a markdown abstract syntax tree (mdast).
6868

6969
## !!steps
7070

@@ -468,7 +468,7 @@ wihout any of the downsides.
468468

469469
## Conclusion
470470

471-
In the talk [Mind the Gap](https://www.youtube.com/watch?v=zqhE-CepH2g), Ryan Florence explains how we have different solutions for handling the network in web apps, different solutions with different trade-offs. With the introduction of React Server Components, components are now able to _cross_ the network and those trade-offs are gone.
471+
In the talk [Mind the Gap](https://www.youtube.com/watch?v=zqhE-CepH2g), Ryan Florence explains how we have different solutions for handling the network in web apps. Different solutions with different trade-offs. With the introduction of React Server Components, components are now able to _cross_ the network and those trade-offs are gone.
472472

473473
This same technology that abstracted the network layer is also abstracting the build-time layer.
474474

apps/web/content/blog/build-time-components.tsx

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import {
66
import { Block, CodeBlock, parseProps } from "codehike/blocks"
77
import { z } from "zod"
88
import { Code } from "../../components/code"
9+
import { Fragment } from "react"
910

1011
export function Chain(props: unknown) {
1112
const { intro, steps, outro } = parseProps(
@@ -33,7 +34,7 @@ export function Chain(props: unknown) {
3334
)}
3435
</div>
3536
{steps.map((step, i) => (
36-
<>
37+
<Fragment key={i}>
3738
<div className="col-start-1 row-span-3 ">
3839
<Code codeblock={step.code} className="h-full m-0" />
3940
</div>
@@ -56,7 +57,7 @@ export function Chain(props: unknown) {
5657
</div>
5758
</div>
5859
)}
59-
</>
60+
</Fragment>
6061
))}
6162
<div className="col-start-2">{outro?.children}</div>
6263
</section>
@@ -66,11 +67,11 @@ export function Chain(props: unknown) {
6667
function Arrow({ intro }: { intro?: boolean }) {
6768
return (
6869
<div className="h-full mr-3 flex-col w-5 hidden md:flex">
69-
{!intro && <div className="h-2 bg-zinc-500/50 rounded-se-2xl mt-6" />}
70-
<div className="flex-1 w-2 bg-zinc-500/50 self-end" />
71-
<div className="h-2 bg-zinc-500/50 rounded-ee-2xl ml-2 mb-6">
70+
{!intro && <div className="h-2 bg-zinc-500/20 rounded-se-2xl mt-6" />}
71+
<div className="flex-1 w-2 bg-zinc-500/20 self-end" />
72+
<div className="h-2 bg-zinc-500/20 rounded-ee-2xl ml-2 mb-6">
7273
<div
73-
className="border-zinc-500/50 -ml-2"
74+
className="border-zinc-500/20 -ml-2"
7475
style={{
7576
width: 0,
7677
height: 0,
@@ -142,6 +143,7 @@ function LinkWithCard({
142143
href={href}
143144
>
144145
{children}
146+
<img src={image} alt={href} className="hidden" fetchPriority="low" />
145147
</HoverCardTrigger>
146148
<HoverCardContent className="p-0 overflow-hidden [&>*]:m-0">
147149
<img src={image} alt={href} />
52.1 KB
Loading

0 commit comments

Comments
 (0)