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 f3fc5b2 commit 1c192c1
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 7 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 { useSetInterval } from '@wojtekmaj/react-hooks';
import Clock from 'react-clock';
import 'react-clock/dist/Clock.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
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 { getHoursMinutesSeconds } 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 = {
renderHourMarks: boolean;
renderMinuteHand: 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 1c192c1

Please sign in to comment.