Skip to content

Commit

Permalink
Self review
Browse files Browse the repository at this point in the history
  • Loading branch information
OEvgeny committed Jan 8, 2025
1 parent 5cb6814 commit 8934324
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { type ReactNode, useEffect, useMemo, useRef } from 'react';
import React, { useEffect, useMemo, useRef, type ReactNode } from 'react';

import { useActivities, usePonyfill } from '../../hooks/index';
import useForceRender from '../../hooks/internal/useForceRender';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ import { type DirectLineCardAction } from 'botframework-webchat-core';
import classNames from 'classnames';
import PropTypes from 'prop-types';
import React, {
type KeyboardEventHandler,
type MouseEventHandler,
useCallback,
useLayoutEffect,
useMemo,
useRef
useRef,
type KeyboardEventHandler,
type MouseEventHandler
} from 'react';

import useStyleSet from '../../hooks/useStyleSet';
Expand Down
4 changes: 2 additions & 2 deletions packages/component/src/Activity/Bubble.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { hooks } from 'botframework-webchat-api';
import classNames from 'classnames';
import PropTypes from 'prop-types';
import React, { type ReactNode, memo } from 'react';
import React, { memo, type ReactNode } from 'react';

import isZeroOrPositive from '../Utils/isZeroOrPositive';
import useStyleSet from '../hooks/useStyleSet';
Expand All @@ -29,7 +29,7 @@ const ROOT_STYLE = {
}
};

function acuteNubSVG(nubSize, strokeWidth, side, upSideDown = false): ReactNode {
function acuteNubSVG(nubSize, strokeWidth, side, upSideDown = false) {
if (typeof nubSize !== 'number') {
return false;
}
Expand Down
4 changes: 2 additions & 2 deletions packages/component/src/SendBox/SuggestedActions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,11 @@ SuggestedActionCarouselContainer.propTypes = {
label: PropTypes.string.isRequired
};

type SuggestedActionFlowContainerProps = {
type SuggestedActionFlowContainerProps = Readonly<{
children?: ReactNode | undefined;
className?: string | undefined;
label: string;
};
}>;

const SuggestedActionFlowContainer = ({ children, className, label }: SuggestedActionFlowContainerProps) => {
const [{ suggestedActions: suggestedActionsStyleSet }] = useStyleSet();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { hooks } from 'botframework-webchat-api';
import classNames from 'classnames';
import React, { memo, type ReactNode, useCallback, useLayoutEffect, useRef } from 'react';
import React, { memo, useCallback, useLayoutEffect, useRef, type ReactNode } from 'react';

import useStyleSet from '../../../hooks/useStyleSet';

Expand Down
8 changes: 4 additions & 4 deletions packages/component/src/withEmoji/withEmoji.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ import { useRefFrom } from 'use-ref-from';
import mergeRefs from 'merge-refs';
import React, {
forwardRef,
useCallback,
useMemo,
useRef,
type ChangeEvent,
type ComponentType,
type FocusEvent,
type KeyboardEvent,
type Ref,
type SyntheticEvent,
useCallback,
useMemo,
useRef
type SyntheticEvent
} from 'react';

import useUndoStack from './private/useUndoStack';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
import React, {
createContext,
memo,
type MutableRefObject,
useCallback,
useContext,
useEffect,
useMemo,
useRef
useRef,
type MutableRefObject
} from 'react';

type ItemRef = MutableRefObject<HTMLElement | undefined>;
Expand Down

0 comments on commit 8934324

Please sign in to comment.