default export for TooltipTarget (#7319)

* default export for TooltipTarget

Signed-off-by: Kerry Archibald <kerrya@element.io>

* newline

Signed-off-by: Kerry Archibald <kerrya@element.io>
pull/21833/head
Kerry 2021-12-09 13:36:55 +01:00 committed by GitHub
parent 93a90280a9
commit 3c1ee204a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 7 additions and 5 deletions

View File

@ -21,7 +21,7 @@ import classNames from 'classnames';
import { Alignment } from './Tooltip';
import { _t } from "../../../languageHandler";
import { replaceableComponent } from "../../../utils/replaceableComponent";
import { TooltipTarget } from './TooltipTarget';
import TooltipTarget from './TooltipTarget';
export enum InfoTooltipKind {
Info = "info",

View File

@ -17,7 +17,7 @@
import React from 'react';
import classNames from 'classnames';
import { replaceableComponent } from "../../../utils/replaceableComponent";
import { TooltipTarget } from './TooltipTarget';
import TooltipTarget from './TooltipTarget';
interface IProps {
class?: string;

View File

@ -17,7 +17,7 @@ limitations under the License.
import React from 'react';
import { replaceableComponent } from "../../../utils/replaceableComponent";
import { TooltipTarget } from './TooltipTarget';
import TooltipTarget from './TooltipTarget';
interface IProps {
helpText: React.ReactNode | string;

View File

@ -25,7 +25,7 @@ interface IProps extends HTMLAttributes<HTMLSpanElement>, Omit<ITooltipProps, 'v
* Generic tooltip target element that handles tooltip visibility state
* and displays children
*/
export const TooltipTarget: React.FC<IProps> = ({
const TooltipTarget: React.FC<IProps> = ({
children,
tooltipTargetClassName,
// tooltip pass through props
@ -66,3 +66,5 @@ export const TooltipTarget: React.FC<IProps> = ({
</div>
);
};
export default TooltipTarget;

View File

@ -8,7 +8,7 @@ import {
import { act } from "react-dom/test-utils";
import { Alignment } from '../../../../src/components/views/elements/Tooltip';
import { TooltipTarget } from "../../../../src/components/views/elements/TooltipTarget";
import TooltipTarget from "../../../../src/components/views/elements/TooltipTarget";
describe('<TooltipTarget />', () => {
const defaultProps = {