diff --git a/src/components/LoaderPortal.jsx b/src/components/LoaderPortal.jsx
new file mode 100644
index 0000000..deed9ee
--- /dev/null
+++ b/src/components/LoaderPortal.jsx
@@ -0,0 +1,13 @@
+import Loader from './Loader'
+
+export default function LoaderPortal({show, children}){
+ return(
+
+
+ 123456{/* {children} */}
+
+ {/* {show &&
} */}
+
qqqq
+ {/* {show &&
} */}
+
)
+}
\ No newline at end of file
diff --git a/src/pages/Wells.jsx b/src/pages/Wells.jsx
index 333344d..33bdc2f 100644
--- a/src/pages/Wells.jsx
+++ b/src/pages/Wells.jsx
@@ -1,6 +1,6 @@
import { useState, useEffect } from 'react'
import { WellService } from '../services/api'
-import Loader from '../components/Loader'
+import LoaderPortal from '../components/LoaderPortal'
import { Table } from 'antd' // TreeSelect
import { useHistory } from 'react-router-dom'
import notify from '../components/notify'
@@ -44,14 +44,15 @@ export default function Wells(props){
notify('Не удалось загрузить список скважин', 'error')
console.error(`${e}`);
}
- setLoader(false)
+ //setLoader(false)
}
useEffect(()=>updateWellsList(), [])
return(<>
Скважины
-
+ {
@@ -59,6 +60,6 @@ export default function Wells(props){
onClick: event => {history.push(`/well/${record.id}/`)},
};
}}/>
- {loader&&}
+
>)
}
\ No newline at end of file