pop-up notifications
This commit is contained in:
@ -14,6 +14,8 @@ import { urlForLocal } from "@utils/helper";
|
||||
|
||||
import { apiRequest } from "@api/request";
|
||||
|
||||
import { useNotification } from "@hooks/useNotification";
|
||||
|
||||
import { Footer } from "@components/Common/Footer/Footer";
|
||||
import { Loader } from "@components/Common/Loader/Loader";
|
||||
import ModalLayout from "@components/Common/ModalLayout/ModalLayout";
|
||||
@ -37,6 +39,7 @@ export const PartnerBid = () => {
|
||||
const requestId = useSelector(getPartnerRequestId);
|
||||
const partnerRequests = useSelector(getPartnerRequests);
|
||||
const navigate = useNavigate();
|
||||
const { showNotification } = useNotification();
|
||||
|
||||
if (!requestId) {
|
||||
return <Navigate to="/profile/requests" replace />;
|
||||
@ -61,6 +64,11 @@ export const PartnerBid = () => {
|
||||
}
|
||||
}).then(() => {
|
||||
navigate("/profile/requests");
|
||||
showNotification({
|
||||
show: true,
|
||||
text: "Вакансия удалена",
|
||||
type: "success"
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user