Skip to content

Commit

Permalink
fix: remove space when there's no icon
Browse files Browse the repository at this point in the history
  • Loading branch information
nhanluongoe committed Mar 26, 2024
1 parent e3f1cd0 commit 5e1218e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/toaster.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export const Toaster: React.FC<ToasterProps> = (props) => {
alignItems: 'center',
}}
>
<ToastIcon type={type} icon={icon} />
{icon && <ToastIcon type={type} icon={icon} />}
<div>
{title && <ToastTitle>{title}</ToastTitle>}
{description && (
Expand Down

0 comments on commit 5e1218e

Please sign in to comment.