Skip to content

Commit

Permalink
Remove toast classes from custom loadingIcon (#268)
Browse files Browse the repository at this point in the history
  • Loading branch information
emilkowalski authored Dec 25, 2023
1 parent 9b0dcae commit 6f6f934
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -196,10 +196,7 @@ const Toast = (props: ToastProps) => {
function getLoadingIcon() {
if (loadingIconProp) {
return (
<div
className={cn('loader', classNames?.toast, toast?.classNames?.toast)}
data-visible={toastType === 'loading'}
>
<div className="loader" data-visible={toastType === 'loading'}>
{loadingIconProp}
</div>
);
Expand Down Expand Up @@ -398,7 +395,7 @@ const Toast = (props: ToastProps) => {

function getDocumentDirection(): ToasterProps['dir'] {
if (typeof window === 'undefined') return 'ltr';
if (typeof document === 'undefined') return 'ltr'; // For Fresh purpose
if (typeof document === 'undefined') return 'ltr'; // For Fresh purpose

const dirAttribute = document.documentElement.getAttribute('dir');

Expand Down

1 comment on commit 6f6f934

@vercel
Copy link

@vercel vercel bot commented on 6f6f934 Dec 25, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.