Skip to content

Commit a01c09f

Browse files
Add React.jsx imports
1 parent 1556ce9 commit a01c09f

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
lines changed

packages/cheatsheet/src/lib/components/CheatsheetLegendComponent.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ type Props = {
1010

1111
export default function CheatsheetLegendComponent({
1212
data,
13-
}: Props): JSX.Element {
13+
}: Props): React.JSX.Element {
1414
const isHighlighted = useIsHighlighted("legend");
1515

1616
const borderClassName = isHighlighted

packages/cheatsheet/src/lib/components/CheatsheetListComponent.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import type { JSX } from "react";
12
import type { CheatsheetSection, Variation } from "../CheatsheetInfo";
23
import useIsHighlighted from "../hooks/useIsHighlighted";
34
import { formatCaptures } from "./formatCaptures";

packages/cheatsheet/src/lib/components/CheatsheetNotesComponent.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as React from "react";
22
import SmartLink from "./SmartLink";
33

4-
export default function CheatsheetNotesComponent(): JSX.Element {
4+
export default function CheatsheetNotesComponent(): React.JSX.Element {
55
return (
66
<div
77
id="notes"

packages/cursorless-org-docs/src/docs/user/languages/components/ScopeSupport.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ import {
33
languageScopeSupport,
44
scopeSupportFacets,
55
} from "@cursorless/common";
6-
import React from "react";
6+
import * as React from "react";
77
import { ScopeSupportForLevel } from "./ScopeSupportForLevel";
88

99
interface Props {
1010
languageId: string;
1111
}
1212

13-
export function ScopeSupport({ languageId }: Props): JSX.Element {
13+
export function ScopeSupport({ languageId }: Props): React.JSX.Element {
1414
const scopesSorted = [...scopeSupportFacets].sort();
1515
const scopeSupport = languageScopeSupport[languageId] ?? {};
1616

packages/cursorless-org-docs/src/docs/user/languages/components/ScopeSupportForLevel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
type ScopeType,
99
type SimpleScopeTypeType,
1010
} from "@cursorless/common";
11-
import React, { useState } from "react";
11+
import React, { useState, type JSX } from "react";
1212

1313
interface Props {
1414
facets: ScopeSupportFacet[];

0 commit comments

Comments
 (0)