Skip to content

Commit

Permalink
refactor: change toast component
Browse files Browse the repository at this point in the history
  • Loading branch information
rpenido committed Aug 13, 2024
1 parent 7c59b4a commit 2631fec
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/generic/toast-context/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React from 'react';
import { Toast } from '@openedx/paragon';

import ProcessingNotification from '../processing-notification';

export interface ToastContextData {
toastMessage: string | null;
Expand Down Expand Up @@ -48,9 +49,7 @@ export const ToastProvider = (props: ToastProviderProps) => {
<ToastContext.Provider value={context}>
{props.children}
{ toastMessage && (
<Toast show={toastMessage !== null} onClose={closeToast}>
{toastMessage}
</Toast>
<ProcessingNotification isShow={toastMessage !== null} title={toastMessage} />
)}
</ToastContext.Provider>
);
Expand Down

0 comments on commit 2631fec

Please sign in to comment.