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 14dd149 commit c1a398b
Show file tree
Hide file tree
Showing 19 changed files with 11 additions and 22 deletions.
2 changes: 1 addition & 1 deletion sample/create-react-app-5/src/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 { pdfjs, Document, Page } from 'react-pdf';
import 'react-pdf/dist/esm/Page/AnnotationLayer.css';
import 'react-pdf/dist/esm/Page/TextLayer.css';
Expand Down
1 change: 0 additions & 1 deletion sample/create-react-app-5/src/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';
Expand Down
2 changes: 1 addition & 1 deletion sample/create-react-app-5/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",
"module": "esnext",
"moduleResolution": "node",
"noUncheckedIndexedAccess": true,
Expand Down
2 changes: 1 addition & 1 deletion sample/parcel2/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 { pdfjs, Document, Page } from 'react-pdf';
import 'react-pdf/dist/esm/Page/AnnotationLayer.css';
import 'react-pdf/dist/esm/Page/TextLayer.css';
Expand Down
1 change: 0 additions & 1 deletion sample/parcel2/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/parcel2/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",
"module": "esnext",
"moduleResolution": "node",
"noUncheckedIndexedAccess": true,
Expand Down
2 changes: 1 addition & 1 deletion sample/vite3/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 { pdfjs, Document, Page } from 'react-pdf';
import 'react-pdf/dist/esm/Page/AnnotationLayer.css';
import 'react-pdf/dist/esm/Page/TextLayer.css';
Expand Down
1 change: 0 additions & 1 deletion sample/vite3/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/vite3/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",
"module": "esnext",
"moduleResolution": "node",
"noUncheckedIndexedAccess": true,
Expand Down
2 changes: 1 addition & 1 deletion sample/vite4/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 { pdfjs, Document, Page } from 'react-pdf';
import 'react-pdf/dist/esm/Page/AnnotationLayer.css';
import 'react-pdf/dist/esm/Page/TextLayer.css';
Expand Down
1 change: 0 additions & 1 deletion sample/vite4/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/vite4/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",
"module": "esnext",
"moduleResolution": "node",
"noUncheckedIndexedAccess": true,
Expand Down
2 changes: 1 addition & 1 deletion sample/webpack5/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 { pdfjs, Document, Page } from 'react-pdf';
import 'react-pdf/dist/esm/Page/AnnotationLayer.css';
import 'react-pdf/dist/esm/Page/TextLayer.css';
Expand Down
1 change: 0 additions & 1 deletion sample/webpack5/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/webpack5/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",
"module": "esnext",
"moduleResolution": "node",
"noUncheckedIndexedAccess": true,
Expand Down
2 changes: 0 additions & 2 deletions test/AnnotationOptions.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from 'react';

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

type AnnotationOptionsProps = {
Expand Down
2 changes: 0 additions & 2 deletions test/LayerOptions.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from 'react';

type LayerOptionsProps = {
renderAnnotationLayer: boolean;
renderForms: boolean;
Expand Down
2 changes: 0 additions & 2 deletions test/PassingOptions.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from 'react';

import { isDataURI } from './shared/utils.js';

import type { File, PassMethod } from './shared/types.js';
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",
"module": "esnext",
"moduleResolution": "node",
"noUncheckedIndexedAccess": true,
Expand Down

0 comments on commit c1a398b

Please sign in to comment.