Skip to content

Commit 22b82e0

Browse files
committed
wip
1 parent 84604d8 commit 22b82e0

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/components/index-page/graphql-advantages/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { PrecisionFigure } from "./precision"
77
import { OptimizationFigure } from "./optimization"
88
import { ProductivityFigure } from "./productivity"
99
import { ConsistencyFigure } from "./consistency"
10+
import { VersionlessFigure } from "./versionless"
1011

1112
export function GraphQLAdvantages() {
1213
return (
@@ -62,7 +63,7 @@ export function GraphQLAdvantages() {
6263
name="Versionless"
6364
bigText="Evolve without versions"
6465
text="Add new fields and types without impacting existing queries. Deprecate outdated fields while keeping APIs clean and future-proof. By using a single evolving version, GraphQL APIs give apps continuous access to new features and encourage more maintainable server code."
65-
figure={null}
66+
figure={<VersionlessFigure />}
6667
cta={
6768
<Button
6869
href="/learn/schema-design/#versioning"

src/components/index-page/without-version.tsx renamed to src/components/index-page/graphql-advantages/versionless.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import { useEffect, useRef } from "react"
2-
import { V1, V2, V3, V4, V5 } from "../code-blocks"
32
import { clsx } from "clsx"
43

5-
export function WithoutVersion() {
4+
import { V1, V2, V3, V4, V5 } from "../../code-blocks"
5+
6+
export function VersionlessFigure() {
67
const ref = useRef<HTMLDivElement>(null)
78

89
useEffect(() => {

0 commit comments

Comments
 (0)