Fix inconsistent React imports in JSX files (#2466)

This commit is contained in:
Claire 2023-11-15 12:52:30 +01:00 committed by GitHub
parent a97b722ad5
commit 9bbb0f13e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 4 additions and 23 deletions

View file

@ -1,5 +1,4 @@
import { useCallback, useState } from 'react';
import * as React from 'react';
import { TransitionMotion, spring } from 'react-motion';

View file

@ -1,5 +1,3 @@
import * as React from 'react';
import classNames from 'classnames';
import { useHovering } from '../hooks/useHovering';

View file

@ -1,5 +1,4 @@
import { useRef, useEffect } from 'react';
import * as React from 'react';
import { memo, useRef, useEffect } from 'react';
import { decode } from 'blurhash';
@ -44,6 +43,6 @@ const Blurhash: React.FC<Props> = ({
);
};
const MemoizedBlurhash = React.memo(Blurhash);
const MemoizedBlurhash = memo(Blurhash);
export { MemoizedBlurhash as Blurhash };

View file

@ -1,5 +1,4 @@
import { useCallback } from 'react';
import * as React from 'react';
import { defineMessages, useIntl } from 'react-intl';

View file

@ -1,5 +1,4 @@
import { useCallback, useState } from 'react';
import * as React from 'react';
interface Props {
src: string;

View file

@ -1,5 +1,3 @@
import * as React from 'react';
import classNames from 'classnames';
interface Props extends React.HTMLAttributes<HTMLImageElement> {

View file

@ -1,4 +1,4 @@
import * as React from 'react';
import { PureComponent } from 'react';
import classNames from 'classnames';
@ -33,7 +33,7 @@ interface States {
activate: boolean;
deactivate: boolean;
}
export class IconButton extends React.PureComponent<Props, States> {
export class IconButton extends PureComponent<Props, States> {
static defaultProps = {
size: 18,
active: false,

View file

@ -1,5 +1,3 @@
import * as React from 'react';
import { Icon } from './icon';
const formatNumber = (num: number): number | string => (num > 40 ? '40+' : num);

View file

@ -1,5 +1,3 @@
import * as React from 'react';
import { FormattedMessage } from 'react-intl';
export const NotSignedInIndicator: React.FC = () => (

View file

@ -1,5 +1,3 @@
import * as React from 'react';
import classNames from 'classnames';
interface Props {

View file

@ -1,5 +1,4 @@
import { useCallback, useState } from 'react';
import * as React from 'react';
import classNames from 'classnames';

View file

@ -1,5 +1,3 @@
import * as React from 'react';
interface Props {
width?: number | string;
height?: number | string;

View file

@ -1,5 +1,3 @@
import * as React from 'react';
import { FormattedMessage } from 'react-intl';
interface Props {