Chore:changed healthCarePrvoviders to users and Users to recipents
This commit is contained in:
parent
22ae1ebe11
commit
1f5d7b7f95
@ -13,7 +13,7 @@
|
|||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"author": "The CoreUI Team (https://github.com/orgs/coreui/people)",
|
"author": "The CoreUI Team (https://github.com/orgs/coreui/people)",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "react-scripts start",
|
"dev": "react-scripts --openssl-legacy-provider start",
|
||||||
"build": "react-scripts build",
|
"build": "react-scripts build",
|
||||||
"build:n17": "react-scripts --openssl-legacy-provider build",
|
"build:n17": "react-scripts --openssl-legacy-provider build",
|
||||||
"changelog": "auto-changelog --starting-version 4.1.0 --commit-limit false --hide-credit",
|
"changelog": "auto-changelog --starting-version 4.1.0 --commit-limit false --hide-credit",
|
||||||
@ -53,7 +53,7 @@
|
|||||||
"enzyme": "^3.11.0",
|
"enzyme": "^3.11.0",
|
||||||
"file-saver": "^2.0.5",
|
"file-saver": "^2.0.5",
|
||||||
"prop-types": "^15.7.2",
|
"prop-types": "^15.7.2",
|
||||||
"react": "18.2",
|
"react": "18.0.0",
|
||||||
"react-app-polyfill": "^2.0.0",
|
"react-app-polyfill": "^2.0.0",
|
||||||
"react-bootstrap": "^2.7.0",
|
"react-bootstrap": "^2.7.0",
|
||||||
"react-date-picker": "^8.4.0",
|
"react-date-picker": "^8.4.0",
|
||||||
|
@ -89,9 +89,9 @@ const _nav = [
|
|||||||
|
|
||||||
{
|
{
|
||||||
component: CNavItem,
|
component: CNavItem,
|
||||||
name: "HealthCare Providers",
|
name: "Users",
|
||||||
icon: <CIcon icon={cilTennisBall} customClassName="nav-icon" />,
|
icon: <CIcon icon={cilTennisBall} customClassName="nav-icon" />,
|
||||||
to: "/healthcare/providers",
|
to: "/users",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
component: CNavGroup,
|
component: CNavGroup,
|
||||||
@ -139,9 +139,9 @@ const _nav = [
|
|||||||
|
|
||||||
{
|
{
|
||||||
component: CNavItem,
|
component: CNavItem,
|
||||||
name: "Users",
|
name: "Recipients",
|
||||||
icon: <CIcon icon={cilUser} customClassName="nav-icon" />,
|
icon: <CIcon icon={cilUser} customClassName="nav-icon" />,
|
||||||
to: "/users",
|
to: "/recipents",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
component: CNavGroup,
|
component: CNavGroup,
|
||||||
|
15
src/index.js
15
src/index.js
@ -10,6 +10,7 @@ import { Provider } from "react-redux";
|
|||||||
import axios from "axios";
|
import axios from "axios";
|
||||||
import { store } from "./redux/store";
|
import { store } from "./redux/store";
|
||||||
import { cibGmail } from "@coreui/icons";
|
import { cibGmail } from "@coreui/icons";
|
||||||
|
import { createRoot } from "react-dom/client";
|
||||||
|
|
||||||
const setupAxios = () => {
|
const setupAxios = () => {
|
||||||
//axios.defaults.baseURL = 'https://bolo-api.checkapp.one/'
|
//axios.defaults.baseURL = 'https://bolo-api.checkapp.one/'
|
||||||
@ -24,12 +25,18 @@ const setupAxios = () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
setupAxios();
|
setupAxios();
|
||||||
|
const domNode = document.getElementById("root");
|
||||||
ReactDOM.render(
|
const root = createRoot(domNode);
|
||||||
|
// ReactDOM.render(
|
||||||
|
// <Provider store={store}>
|
||||||
|
// <App />
|
||||||
|
// </Provider>,
|
||||||
|
// document.getElementById("root")
|
||||||
|
// );
|
||||||
|
root.render(
|
||||||
<Provider store={store}>
|
<Provider store={store}>
|
||||||
<App />
|
<App />
|
||||||
</Provider>,
|
</Provider>
|
||||||
document.getElementById("root")
|
|
||||||
);
|
);
|
||||||
|
|
||||||
// If you want your app to work offline and load faster, you can change
|
// If you want your app to work offline and load faster, you can change
|
||||||
|
@ -121,22 +121,22 @@ const routes = [
|
|||||||
|
|
||||||
// health care providers
|
// health care providers
|
||||||
{
|
{
|
||||||
path: "//healthcare/providers",
|
path: "//users",
|
||||||
name: "healthcare providers",
|
name: "healthcare providers",
|
||||||
element: Businesses,
|
element: Businesses,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: "//healthcare/providers/add",
|
path: "//users/add",
|
||||||
name: "Add healthcare providers",
|
name: "Add healthcare providers",
|
||||||
element: AddBusiness,
|
element: AddBusiness,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: "/healthcare/providers/edit/:id",
|
path: "/users/edit/:id",
|
||||||
name: "Edit healthcare providers",
|
name: "Edit healthcare providers",
|
||||||
element: EditBusiness,
|
element: EditBusiness,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: "/healthcare/providers/view/:id",
|
path: "/users/view/:id",
|
||||||
name: "view healthcare providers",
|
name: "view healthcare providers",
|
||||||
element: ViewHealthCareProvider,
|
element: ViewHealthCareProvider,
|
||||||
},
|
},
|
||||||
|
@ -135,7 +135,7 @@ const AddBusiness = () => {
|
|||||||
button: "Return",
|
button: "Return",
|
||||||
});
|
});
|
||||||
setLoading(false);
|
setLoading(false);
|
||||||
navigate("/healthcare/providers", { replace: true });
|
navigate("/users", { replace: true });
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
setLoading(false);
|
setLoading(false);
|
||||||
@ -163,7 +163,7 @@ const AddBusiness = () => {
|
|||||||
"
|
"
|
||||||
>
|
>
|
||||||
<div style={{ fontSize: "22px" }} className="fw-bold">
|
<div style={{ fontSize: "22px" }} className="fw-bold">
|
||||||
Add Healthcare Provider
|
Add User
|
||||||
</div>
|
</div>
|
||||||
<div className="page-title-right">
|
<div className="page-title-right">
|
||||||
<div className="page-title-right">
|
<div className="page-title-right">
|
||||||
@ -286,7 +286,7 @@ const AddBusiness = () => {
|
|||||||
type="button"
|
type="button"
|
||||||
onClick={() => handleView(1)}
|
onClick={() => handleView(1)}
|
||||||
>
|
>
|
||||||
Select Provider Type
|
Select User Type
|
||||||
</button>
|
</button>
|
||||||
{/*<button
|
{/*<button
|
||||||
className={
|
className={
|
||||||
@ -308,18 +308,7 @@ const AddBusiness = () => {
|
|||||||
type="button"
|
type="button"
|
||||||
onClick={() => handleView(3)}
|
onClick={() => handleView(3)}
|
||||||
>
|
>
|
||||||
Contact Information
|
Basic Information
|
||||||
</button>
|
|
||||||
<button
|
|
||||||
className={
|
|
||||||
viewState === 4
|
|
||||||
? "btn btn-light"
|
|
||||||
: "btn btn-info text-white"
|
|
||||||
}
|
|
||||||
type="button"
|
|
||||||
onClick={() => handleView(4)}
|
|
||||||
>
|
|
||||||
Select Languages
|
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
className={
|
className={
|
||||||
|
@ -137,11 +137,11 @@ const Businesses = () => {
|
|||||||
"
|
"
|
||||||
>
|
>
|
||||||
<div style={{ fontSize: "22px" }} className="fw-bold">
|
<div style={{ fontSize: "22px" }} className="fw-bold">
|
||||||
Health Care Providers
|
Users
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="page-title-right">
|
<div className="page-title-right">
|
||||||
<Link to="/healthcare/providers/add">
|
<Link to="/users/add">
|
||||||
<Button
|
<Button
|
||||||
variant="contained"
|
variant="contained"
|
||||||
color="primary"
|
color="primary"
|
||||||
@ -198,12 +198,13 @@ const Businesses = () => {
|
|||||||
style={{ background: "rgb(140, 213, 213)" }}
|
style={{ background: "rgb(140, 213, 213)" }}
|
||||||
>
|
>
|
||||||
<tr>
|
<tr>
|
||||||
<th className="text-start">HealthCare Provider </th>
|
<th className="text-start">User Name </th>
|
||||||
{/* <th className="text-start">Logo</th> */}
|
{/* <th className="text-start">Logo</th> */}
|
||||||
<th className="text-start">Name </th>
|
<th className="text-start">User Type </th>
|
||||||
<th className="text-start">Created On</th>
|
<th className="text-start">Created On</th>
|
||||||
{/* <th className="text-start">Status</th> */}
|
{/* <th className="text-start">Status</th> */}
|
||||||
<th className="text-center">Actions</th>
|
<th className="text-center">Actions</th>
|
||||||
|
<th className="text-center">Campaigns</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
@ -268,9 +269,7 @@ const Businesses = () => {
|
|||||||
<td className=" text-center">
|
<td className=" text-center">
|
||||||
<OverLayButton data={{ url: i?.url }} />
|
<OverLayButton data={{ url: i?.url }} />
|
||||||
|
|
||||||
<Link
|
<Link to={`/users/view/${i._id}`}>
|
||||||
to={`/healthcare/providers/view/${i._id}`}
|
|
||||||
>
|
|
||||||
<button
|
<button
|
||||||
style={{ color: "white" }}
|
style={{ color: "white" }}
|
||||||
type="button"
|
type="button"
|
||||||
@ -284,9 +283,7 @@ const Businesses = () => {
|
|||||||
</button>
|
</button>
|
||||||
</Link>
|
</Link>
|
||||||
|
|
||||||
<Link
|
<Link to={`/users/edit/${i._id}`}>
|
||||||
to={`/healthcare/providers/edit/${i._id}`}
|
|
||||||
>
|
|
||||||
<button
|
<button
|
||||||
style={{ color: "white" }}
|
style={{ color: "white" }}
|
||||||
type="button"
|
type="button"
|
||||||
|
@ -166,7 +166,7 @@ const EditBusiness = () => {
|
|||||||
button: "Return",
|
button: "Return",
|
||||||
});
|
});
|
||||||
setLoading(false);
|
setLoading(false);
|
||||||
navigate("/healthcare/providers", { replace: true });
|
navigate("/users", { replace: true });
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
setLoading(false);
|
setLoading(false);
|
||||||
|
@ -65,7 +65,7 @@ const ViewHealthCareProvider = () => {
|
|||||||
textTransform: "capitalize",
|
textTransform: "capitalize",
|
||||||
}}
|
}}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
navigate("/healthcare/providers", { replace: true });
|
navigate("/users", { replace: true });
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
Back
|
Back
|
||||||
|
@ -137,7 +137,7 @@ const Contacts = (props) => {
|
|||||||
"
|
"
|
||||||
>
|
>
|
||||||
<div style={{ fontSize: "22px" }} className="fw-bold">
|
<div style={{ fontSize: "22px" }} className="fw-bold">
|
||||||
Contact Information
|
Basic Information
|
||||||
</div>
|
</div>
|
||||||
<div style={{ display: "flex", gap: "1rem" }}>
|
<div style={{ display: "flex", gap: "1rem" }}>
|
||||||
<h4 className="mb-0"></h4>
|
<h4 className="mb-0"></h4>
|
||||||
@ -233,18 +233,6 @@ const Contacts = (props) => {
|
|||||||
</p>
|
</p>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
<div className="mb-3">
|
|
||||||
<label htmlFor="title" className="form-label">
|
|
||||||
Contact Person Name*
|
|
||||||
</label>
|
|
||||||
<input
|
|
||||||
type="text"
|
|
||||||
className="form-control"
|
|
||||||
id="contact_Person_Name"
|
|
||||||
value={data.contact_Person_Name}
|
|
||||||
onChange={(e) => handleChange(e)}
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{/*<div className="mb-3">
|
{/*<div className="mb-3">
|
||||||
<label htmlFor="title" className="form-label">
|
<label htmlFor="title" className="form-label">
|
||||||
|
@ -58,14 +58,14 @@ const SelectBusiness = (props) => {
|
|||||||
"
|
"
|
||||||
>
|
>
|
||||||
<div style={{ fontSize: "22px" }} className="fw-bold">
|
<div style={{ fontSize: "22px" }} className="fw-bold">
|
||||||
Select Provider Type
|
Select User Type
|
||||||
</div>
|
</div>
|
||||||
<div style={{ display: "flex", gap: "1rem" }}>
|
<div style={{ display: "flex", gap: "1rem" }}>
|
||||||
<h4 className="mb-0"></h4>
|
<h4 className="mb-0"></h4>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="page-title-right">
|
<div className="page-title-right">
|
||||||
<Link to="/healthcare/providers">
|
<Link to="/users">
|
||||||
<Button
|
<Button
|
||||||
variant="contained"
|
variant="contained"
|
||||||
color="secondary"
|
color="secondary"
|
||||||
|
Loading…
Reference in New Issue
Block a user