Skip to content

Commit

Permalink
Merge pull request #377 from sudhanshutech/tooltip/icom
Browse files Browse the repository at this point in the history
[component] Tooltip Icon
  • Loading branch information
leecalcote authored Feb 28, 2024
2 parents 1271178 + 677f29a commit 29fd2d0
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { type TooltipProps } from '@mui/material';
import React from 'react';
import { Tooltip } from '../../base/Tooltip';

type StyledTooltipProps = {
type CustomTooltipProps = {
title: string;
onClick?: (event: React.MouseEvent<HTMLElement>) => void;
children: React.ReactNode;
Expand All @@ -14,7 +14,7 @@ function StyledTooltip({
placement,
children,
...props
}: StyledTooltipProps): JSX.Element {
}: CustomTooltipProps): JSX.Element {
return (
<Tooltip title={title} placement={placement} onClick={onClick} arrow {...props}>
{children}
Expand Down
3 changes: 3 additions & 0 deletions src/custom/CustomTooltip/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import CustomTooltip from './customTooltip';

export { CustomTooltip };
3 changes: 0 additions & 3 deletions src/custom/Tooltip/index.tsx

This file was deleted.

4 changes: 2 additions & 2 deletions src/custom/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
CustomColumnVisibilityControl,
CustomColumnVisibilityControlProps
} from './CustomColumnVisibilityControl/CustomColumnVisibilityControl';
import { CustomTooltip } from './CustomTooltip';
import { EmptyState } from './EmptyState';
import {
ErrorBoundary,
Expand All @@ -17,22 +18,21 @@ import { useNotificationHandler } from './Helpers/Notification';
import PopperListener, { IPopperListener } from './PopperListener';
import ResponsiveDataTable, { ResponsiveDataTableProps } from './ResponsiveDataTable';
import SearchBar, { SearchBarProps } from './SearchBar';
import { StyledTooltip } from './Tooltip';
import UniversalFilter, { UniversalFilterProps } from './UniversalFilter';

export { StyledChartDialog } from './ChartDialog';
export { StyledSearchBar } from './StyledSearchBar';
export {
ConnectionChip,
CustomColumnVisibilityControl,
CustomTooltip,
EmptyState,
ErrorBoundary,
Fallback,
FlipCard,
PopperListener,
ResponsiveDataTable,
SearchBar,
StyledTooltip,
UniversalFilter,
useNotificationHandler,
useWindowDimensions,
Expand Down

0 comments on commit 29fd2d0

Please sign in to comment.