mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-07-15 07:17:00 +10:00
- deleting a resume
This commit is contained in:
@@ -1,21 +1,24 @@
|
||||
import React, { Fragment } from "react";
|
||||
import { ToastContainer, Slide } from "react-toastify";
|
||||
import React, { Fragment, useEffect } from "react";
|
||||
import { Slide, toast } from "react-toastify";
|
||||
import ModalRegistrar from "../../modals/ModalRegistrar";
|
||||
|
||||
const Wrapper = ({ children }) => {
|
||||
useEffect(() => {
|
||||
toast.configure({
|
||||
role: "alert",
|
||||
hideProgressBar: true,
|
||||
transition: Slide,
|
||||
closeButton: false,
|
||||
position: "bottom-right",
|
||||
pauseOnFocusLoss: false,
|
||||
});
|
||||
}, []);
|
||||
|
||||
return (
|
||||
<Fragment>
|
||||
{children}
|
||||
|
||||
<ModalRegistrar />
|
||||
<ToastContainer
|
||||
role="alert"
|
||||
hideProgressBar
|
||||
transition={Slide}
|
||||
closeButton={false}
|
||||
position="bottom-right"
|
||||
pauseOnFocusLoss={false}
|
||||
/>
|
||||
</Fragment>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user