Skip to content

Commit 05347d5

Browse files
committed
Refactor imports and remove unused JSX runtime
- Updated import statements across multiple components to remove unnecessary imports of `jsx`. - Removed the `jsx` runtime file as it is no longer needed. - Adjusted TypeScript configuration to use the new JSX transform with `react-jsx` and specified the import source.
1 parent 54c4e47 commit 05347d5

70 files changed

Lines changed: 70 additions & 241 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/components/cards.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
import { Fragment, jsx } from "../runtime/jsx";
2-
3-
import type { SiteLink } from "../pages/shared/content";
1+
import type { SiteLink } from "../pages/shared/content";
42

53
export function LinkCard(props: SiteLink) {
64
return (

src/components/doc-layout.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
import { jsx } from "../runtime/jsx";
2-
3-
import { SiteShell } from "./site-shell";
1+
import { SiteShell } from "./site-shell";
42
import type { Props } from "../types/props";
53

64
export interface DocLayoutProps extends Props {

src/components/page-primitives/catalog.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
import { jsx } from "../../runtime/jsx";
2-
3-
import { LinkCardGrid } from "../cards";
1+
import { LinkCardGrid } from "../cards";
42
import { PageSection } from "./section";
53
import type { SiteLink } from "../../pages/shared/content";
64

src/components/page-primitives/detail.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
import { jsx } from "../../runtime/jsx";
2-
3-
export interface InputRequirement {
1+
export interface InputRequirement {
42
label: string;
53
value: string;
64
}

src/components/page-primitives/hero.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
import { jsx } from "../../runtime/jsx";
2-
3-
export interface HeroChipLink {
1+
export interface HeroChipLink {
42
href: string;
53
label: string;
64
}

src/components/page-primitives/section.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
import { jsx } from "../../runtime/jsx";
2-
3-
export interface SectionHeadProps {
1+
export interface SectionHeadProps {
42
kicker: string;
53
title: string;
64
description: string;

src/components/page-primitives/snippet.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
import { jsx } from "../../runtime/jsx";
2-
3-
export function CodeSnippetBlock(props: { snippet: string }) {
1+
export function CodeSnippetBlock(props: { snippet: string }) {
42
return (
53
<pre class="code-block">
64
<code>{props.snippet}</code>

src/components/page-templates/catalog-template.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
import { jsx } from "../../runtime/jsx";
2-
3-
import { HeroChipRow } from "../page-primitives";
1+
import { HeroChipRow } from "../page-primitives";
42
import { SiteShell } from "../site-shell";
53

64
export interface CatalogTemplateSection {

src/components/page-templates/detail-template.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
import { jsx } from "../../runtime/jsx";
2-
3-
import { HeroChipRow } from "../page-primitives";
1+
import { HeroChipRow } from "../page-primitives";
42
import { SiteShell } from "../site-shell";
53

64
export interface DetailTemplateSection {

src/components/page-templates/showcase-template.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
import { jsx } from "../../runtime/jsx";
2-
3-
import { SiteShell } from "../site-shell";
1+
import { SiteShell } from "../site-shell";
42

53
export interface ShowcaseMetric {
64
label: string;

0 commit comments

Comments
 (0)