mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2025-08-26 14:19:24 +00:00
Removed duplicated type for tooltip
This commit is contained in:
parent
f34e505d84
commit
433ef9755c
@ -2,7 +2,8 @@ import React, { useState, useRef, useEffect } from 'react';
|
|||||||
import { createPortal } from 'react-dom';
|
import { createPortal } from 'react-dom';
|
||||||
import { isClickOutside, addEventListenerWithCleanup } from '../../utils/genericUtils';
|
import { isClickOutside, addEventListenerWithCleanup } from '../../utils/genericUtils';
|
||||||
import { useTooltipPosition } from '../../hooks/useTooltipPosition';
|
import { useTooltipPosition } from '../../hooks/useTooltipPosition';
|
||||||
import { TooltipContent, TooltipTip } from './tooltip/TooltipContent';
|
import { TooltipTip } from '../../types/tips';
|
||||||
|
import { TooltipContent } from './tooltip/TooltipContent';
|
||||||
import { useSidebarContext } from '../../contexts/SidebarContext';
|
import { useSidebarContext } from '../../contexts/SidebarContext';
|
||||||
import styles from './tooltip/Tooltip.module.css'
|
import styles from './tooltip/Tooltip.module.css'
|
||||||
|
|
||||||
|
@ -1,12 +1,6 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import styles from './Tooltip.module.css';
|
import styles from './Tooltip.module.css';
|
||||||
|
import { TooltipTip } from '../../../types/tips';
|
||||||
export interface TooltipTip {
|
|
||||||
title?: string;
|
|
||||||
description?: string;
|
|
||||||
bullets?: string[];
|
|
||||||
body?: React.ReactNode;
|
|
||||||
}
|
|
||||||
|
|
||||||
interface TooltipContentProps {
|
interface TooltipContentProps {
|
||||||
content?: React.ReactNode;
|
content?: React.ReactNode;
|
||||||
|
@ -3,7 +3,7 @@ import { Text, Stack, Box, Flex, Divider } from '@mantine/core';
|
|||||||
import ExpandMoreIcon from '@mui/icons-material/ExpandMore';
|
import ExpandMoreIcon from '@mui/icons-material/ExpandMore';
|
||||||
import ChevronRightIcon from '@mui/icons-material/ChevronRight';
|
import ChevronRightIcon from '@mui/icons-material/ChevronRight';
|
||||||
import { Tooltip } from '../../shared/Tooltip';
|
import { Tooltip } from '../../shared/Tooltip';
|
||||||
import { TooltipTip } from '../../shared/tooltip/TooltipContent';
|
import { TooltipTip } from '../../../types/tips';
|
||||||
import { createFilesToolStep, FilesToolStepProps } from './FilesToolStep';
|
import { createFilesToolStep, FilesToolStepProps } from './FilesToolStep';
|
||||||
import { createReviewToolStep, ReviewToolStepProps } from './ReviewToolStep';
|
import { createReviewToolStep, ReviewToolStepProps } from './ReviewToolStep';
|
||||||
|
|
||||||
|
@ -1,13 +1,15 @@
|
|||||||
|
export interface TooltipTip {
|
||||||
|
title?: string;
|
||||||
|
description?: string;
|
||||||
|
bullets?: string[];
|
||||||
|
body?: React.ReactNode;
|
||||||
|
}
|
||||||
|
|
||||||
export interface TooltipContent {
|
export interface TooltipContent {
|
||||||
header?: {
|
header?: {
|
||||||
title: string;
|
title: string;
|
||||||
logo?: string | React.ReactNode;
|
logo?: string | React.ReactNode;
|
||||||
};
|
};
|
||||||
tips?: Array<{
|
tips?: TooltipTip[];
|
||||||
title?: string;
|
|
||||||
description?: string;
|
|
||||||
bullets?: string[];
|
|
||||||
body?: React.ReactNode;
|
|
||||||
}>;
|
|
||||||
content?: React.ReactNode;
|
content?: React.ReactNode;
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user