Skip to content

Commit

Permalink
fix: disabled [object Object] hover message on dialog popups (#284)
Browse files Browse the repository at this point in the history
  • Loading branch information
caseycharleston authored Oct 8, 2024
1 parent b3632c0 commit dcc1d81
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/views/components/common/Dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export type DialogProps = _DialogProps & Omit<TransitionRootProps<typeof HDialog
* A reusable popup component that can be used to display content on the page
*/
export default function Dialog(props: PropsWithChildren<DialogProps>): JSX.Element {
const { children, className, open, ...rest } = props;
const { children, className, open, title, description, ...rest } = props;

return (
<Transition show={open} as={HDialog} {...rest}>
Expand Down Expand Up @@ -63,8 +63,8 @@ export default function Dialog(props: PropsWithChildren<DialogProps>): JSX.Eleme
className
)}
>
{props.title && <DialogTitle as={Fragment}>{props.title}</DialogTitle>}
{props.description && <Description as={Fragment}>{props.description}</Description>}
{title && <DialogTitle as={Fragment}>{title}</DialogTitle>}
{description && <Description as={Fragment}>{description}</Description>}
{children}
</DialogPanel>
</TransitionChild>
Expand Down

0 comments on commit dcc1d81

Please sign in to comment.