Skip to content

Commit

Permalink
Use new JSX transform
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmaj committed Apr 26, 2024
1 parent b151e93 commit a011dc0
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/react-timerange-picker/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"extends": "wojtekmaj/react-no-automatic-runtime"
"extends": "wojtekmaj/react"
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { describe, expect, it, vi } from 'vitest';
import React from 'react';
import { act, fireEvent, render, waitFor, waitForElementToBeRemoved } from '@testing-library/react';
import { userEvent } from '@testing-library/user-event';

Expand Down
6 changes: 3 additions & 3 deletions packages/react-timerange-picker/src/TimeRangePicker.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use client';

import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';
import { createElement, useCallback, useEffect, useMemo, useRef, useState } from 'react';
import { createPortal } from 'react-dom';
import PropTypes from 'prop-types';
import makeEventProps from 'make-event-props';
Expand Down Expand Up @@ -582,7 +582,7 @@ const TimeRangePicker: React.FC<TimeRangePickerProps> = function TimeRangePicker
onFocus={stopPropagation}
type="button"
>
{typeof clearIcon === 'function' ? React.createElement(clearIcon) : clearIcon}
{typeof clearIcon === 'function' ? createElement(clearIcon) : clearIcon}
</button>
)}
{clockIcon !== null && !disableClock && (
Expand All @@ -595,7 +595,7 @@ const TimeRangePicker: React.FC<TimeRangePickerProps> = function TimeRangePicker
onFocus={stopPropagation}
type="button"
>
{typeof clockIcon === 'function' ? React.createElement(clockIcon) : clockIcon}
{typeof clockIcon === 'function' ? createElement(clockIcon) : clockIcon}
</button>
)}
</div>
Expand Down
2 changes: 1 addition & 1 deletion packages/react-timerange-picker/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": "nodenext",
"noEmit": true,
"noUncheckedIndexedAccess": true,
Expand Down

0 comments on commit a011dc0

Please sign in to comment.