diff --git a/package.json b/package.json
index 951214c..095caf2 100644
--- a/package.json
+++ b/package.json
@@ -13,7 +13,7 @@
"license": "MIT",
"author": "The CoreUI Team (https://github.com/orgs/coreui/people)",
"scripts": {
- "dev": "react-scripts start",
+ "dev": "react-scripts --openssl-legacy-provider start",
"build": "react-scripts build",
"build:n17": "react-scripts --openssl-legacy-provider build",
"changelog": "auto-changelog --starting-version 4.1.0 --commit-limit false --hide-credit",
@@ -53,7 +53,7 @@
"enzyme": "^3.11.0",
"file-saver": "^2.0.5",
"prop-types": "^15.7.2",
- "react": "18.2",
+ "react": "18.0.0",
"react-app-polyfill": "^2.0.0",
"react-bootstrap": "^2.7.0",
"react-date-picker": "^8.4.0",
diff --git a/src/_nav.js b/src/_nav.js
index 19a245d..e47f95b 100644
--- a/src/_nav.js
+++ b/src/_nav.js
@@ -89,9 +89,9 @@ const _nav = [
{
component: CNavItem,
- name: "HealthCare Providers",
+ name: "Users",
icon: ,
- to: "/healthcare/providers",
+ to: "/users",
},
{
component: CNavGroup,
@@ -139,9 +139,9 @@ const _nav = [
{
component: CNavItem,
- name: "Users",
+ name: "Recipients",
icon: ,
- to: "/users",
+ to: "/recipents",
},
{
component: CNavGroup,
diff --git a/src/index.js b/src/index.js
index 9feee83..f261c47 100644
--- a/src/index.js
+++ b/src/index.js
@@ -10,6 +10,7 @@ import { Provider } from "react-redux";
import axios from "axios";
import { store } from "./redux/store";
import { cibGmail } from "@coreui/icons";
+import { createRoot } from "react-dom/client";
const setupAxios = () => {
//axios.defaults.baseURL = 'https://bolo-api.checkapp.one/'
@@ -24,12 +25,18 @@ const setupAxios = () => {
};
setupAxios();
-
-ReactDOM.render(
+const domNode = document.getElementById("root");
+const root = createRoot(domNode);
+// ReactDOM.render(
+//
+//
+// ,
+// document.getElementById("root")
+// );
+root.render(
- ,
- document.getElementById("root")
+
);
// If you want your app to work offline and load faster, you can change
diff --git a/src/routes.js b/src/routes.js
index 2a3d0cd..a08fc48 100644
--- a/src/routes.js
+++ b/src/routes.js
@@ -121,22 +121,22 @@ const routes = [
// health care providers
{
- path: "//healthcare/providers",
+ path: "//users",
name: "healthcare providers",
element: Businesses,
},
{
- path: "//healthcare/providers/add",
+ path: "//users/add",
name: "Add healthcare providers",
element: AddBusiness,
},
{
- path: "/healthcare/providers/edit/:id",
+ path: "/users/edit/:id",
name: "Edit healthcare providers",
element: EditBusiness,
},
{
- path: "/healthcare/providers/view/:id",
+ path: "/users/view/:id",
name: "view healthcare providers",
element: ViewHealthCareProvider,
},
diff --git a/src/views/Business/AddBusiness.js b/src/views/Business/AddBusiness.js
index bac05de..deebe93 100644
--- a/src/views/Business/AddBusiness.js
+++ b/src/views/Business/AddBusiness.js
@@ -135,7 +135,7 @@ const AddBusiness = () => {
button: "Return",
});
setLoading(false);
- navigate("/healthcare/providers", { replace: true });
+ navigate("/users", { replace: true });
})
.catch((err) => {
setLoading(false);
@@ -163,7 +163,7 @@ const AddBusiness = () => {
"
>
- Add Healthcare Provider
+ Add User
@@ -286,7 +286,7 @@ const AddBusiness = () => {
type="button"
onClick={() => handleView(1)}
>
- Select Provider Type
+ Select User Type
{/*
-