only change password, docs and mail left
This commit is contained in:
@@ -16,9 +16,11 @@ import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
||||
import { faPencil } from '@fortawesome/free-solid-svg-icons';
|
||||
import IfNotAuthenticated from '../components/Auth/IfNotAuthenticated';
|
||||
import NotificationModal from '../components/NotificationModal';
|
||||
import { useError } from '../context/ErrorContext';
|
||||
|
||||
const ListaEspera = () => {
|
||||
const { config, configLoading } = useConfig();
|
||||
const { showError } = useError();
|
||||
|
||||
if (configLoading) return <p><LoadingIcon /></p>;
|
||||
|
||||
@@ -29,7 +31,7 @@ const ListaEspera = () => {
|
||||
};
|
||||
|
||||
return (
|
||||
<DataProvider config={reqConfig}>
|
||||
<DataProvider config={reqConfig} onError={showError}>
|
||||
<ListaEsperaContent reqConfig={reqConfig} />
|
||||
</DataProvider>
|
||||
);
|
||||
@@ -37,7 +39,7 @@ const ListaEspera = () => {
|
||||
|
||||
const ListaEsperaContent = ({ reqConfig }) => {
|
||||
const { authStatus } = useAuth();
|
||||
const { data, dataLoading, dataError, postData } = useDataContext();
|
||||
const { data, dataLoading, postData } = useDataContext();
|
||||
|
||||
const [showWelcomeModal, setShowWelcomeModal] = useState(false);
|
||||
const [showNewUserFormModal, setShowNewUserFormModal] = useState(false);
|
||||
@@ -101,7 +103,6 @@ const ListaEsperaContent = ({ reqConfig }) => {
|
||||
};
|
||||
|
||||
if (dataLoading) return <p className="text-center my-5"><LoadingIcon /></p>;
|
||||
if (dataError) return <p className="text-danger text-center my-5">{dataError}</p>;
|
||||
|
||||
return (
|
||||
<CustomContainer>
|
||||
|
||||
Reference in New Issue
Block a user