diff --git a/packages/frontend/src/components/shared/IconWithFrame/IconWithFrame.tsx b/packages/frontend/src/components/shared/IconWithFrame/IconWithFrame.tsx index 10eba40c..77bea57a 100644 --- a/packages/frontend/src/components/shared/IconWithFrame/IconWithFrame.tsx +++ b/packages/frontend/src/components/shared/IconWithFrame/IconWithFrame.tsx @@ -1,9 +1,8 @@ -import React, { ReactNode } from 'react'; +import React, { ComponentPropsWithoutRef, ReactNode } from 'react'; import { cn } from 'utils/classnames'; -interface IconWithFrameProps { +interface IconWithFrameProps extends ComponentPropsWithoutRef<'div'> { icon: ReactNode; - className?: string; hasHighlight?: boolean; } @@ -11,6 +10,7 @@ export const IconWithFrame = ({ icon, className, hasHighlight = true, + ...props }: IconWithFrameProps) => { return (
{hasHighlight && (