diff --git a/src/custom/CustomTooltip/customTooltip.tsx b/src/custom/CustomTooltip/customTooltip.tsx index ee89fcec..d7ebf612 100644 --- a/src/custom/CustomTooltip/customTooltip.tsx +++ b/src/custom/CustomTooltip/customTooltip.tsx @@ -6,10 +6,10 @@ import { RenderMarkdownTooltip } from '../Markdown'; type CustomTooltipProps = { title: string | React.ReactNode | JSX.Element; onClick?: (event: React.MouseEvent) => void; - children: React.ReactNode; + children?: React.ReactNode; fontSize?: string; fontWeight?: number; - variant?: 'standard' | 'small'; + variant?: 'info' | 'trivial'; bgColor?: string; } & Omit; @@ -20,22 +20,22 @@ function CustomTooltip({ children, fontSize, fontWeight = 400, - variant = 'standard', + variant = 'info', bgColor = CHARCOAL, ...props }: CustomTooltipProps): JSX.Element { return ( - {children} + {children || } ); } diff --git a/src/custom/Modal/index.tsx b/src/custom/Modal/index.tsx index 6ea90ae6..e5e0b47b 100644 --- a/src/custom/Modal/index.tsx +++ b/src/custom/Modal/index.tsx @@ -162,7 +162,7 @@ export const ModalFooter: React.FC = ({ helpText, children, va return ( {helpText && ( - +