Skip to content

Commit

Permalink
allow override toast container options in NotifyContainer
Browse files Browse the repository at this point in the history
  • Loading branch information
kishkoigor committed Jul 23, 2024
1 parent 7e4d7a5 commit bbadef1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/components/Notification/NotificationContainer.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import React from 'react';
import { ToastContainer } from 'react-toastify';
import { ToastContainer, ToastContainerProps } from 'react-toastify';
import { CloseButton } from './components/CloseButton';
import 'react-toastify/dist/ReactToastify.css';
import s from './notification.module.css';

export function NotificationContainer() {
export function NotificationContainer(props: ToastContainerProps) {
return (
<ToastContainer
hideProgressBar
Expand All @@ -17,6 +17,7 @@ export function NotificationContainer() {
theme={'colored'}
closeOnClick={false}
autoClose={false}
{...props}
/>
);
}
2 changes: 1 addition & 1 deletion src/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ export * from './Badge';
export * from './Radio';
export * from './Checkbox';
export * from './InlineLoader';
export * from './AddressInfo'
export * from './AddressInfo';

0 comments on commit bbadef1

Please sign in to comment.