Skip to content

Commit

Permalink
Use new JSX transform in all sample and test suites
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmaj committed Sep 22, 2023
1 parent 5c729d8 commit 202328f
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 10 deletions.
2 changes: 1 addition & 1 deletion sample/Sample.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useState } from 'react';
import { useState } from 'react';
import DateTimeRangePicker from '@wojtekmaj/react-datetimerange-picker';

import './Sample.css';
Expand Down
1 change: 0 additions & 1 deletion sample/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import { createRoot } from 'react-dom/client';

import Sample from './Sample.js';
Expand Down
2 changes: 1 addition & 1 deletion sample/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"declaration": true,
"esModuleInterop": true,
"isolatedModules": true,
"jsx": "react",
"jsx": "react-jsx",
"moduleResolution": "node",
"noUncheckedIndexedAccess": true,
"outDir": "dist",
Expand Down
2 changes: 0 additions & 2 deletions test/MaxDetailOptions.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from 'react';

import type { Detail } from './shared/types.js';

const allViews = ['hour', 'minute', 'second'] as const;
Expand Down
1 change: 0 additions & 1 deletion test/ValidityOptions.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import { getISOLocalDate } from '@wojtekmaj/date-utils';

type ValidityOptionsProps = {
Expand Down
1 change: 0 additions & 1 deletion test/ValueOptions.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import { getISOLocalDateTime } from '@wojtekmaj/date-utils';

import type { LooseValue } from './shared/types.js';
Expand Down
2 changes: 0 additions & 2 deletions test/ViewOptions.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from 'react';

type ViewOptionsProps = {
disabled: boolean;
renderInPortal: boolean;
Expand Down
2 changes: 1 addition & 1 deletion test/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"declaration": true,
"esModuleInterop": true,
"isolatedModules": true,
"jsx": "react",
"jsx": "react-jsx",
"moduleResolution": "node",
"noUncheckedIndexedAccess": true,
"outDir": "dist",
Expand Down

0 comments on commit 202328f

Please sign in to comment.