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
parent
93a90280a9
commit
3c1ee204a0
|
@ -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",
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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 = {
|
||||
|
|
Loading…
Reference in New Issue