Skip to content

An opinionated toast component for React.

Remove toast classes from custom loadingIcon (#268)

Emil Kowalski6f6f93433350
diff --git a/src/index.tsx b/src/index.tsx
index ecdd523..fb39ce4 100644
--- a/src/index.tsx
+++ b/src/index.tsx
@@ -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>
);
@@ -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');