From 0a5bc6d2585f81ec92ad1b9a280a49bc28cda308 Mon Sep 17 00:00:00 2001
From: pawan-dot <71133473+pawan-dot@users.noreply.github.com>
Date: Thu, 3 Nov 2022 13:12:07 +0530
Subject: [PATCH] edit profile
---
src/components/AppSidebarNav.js | 1 -
src/index.js | 2 +-
src/views/Events/AllRegisterUser.js | 2 +-
src/views/Profile/EditProfile.js | 4 ++--
4 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/src/components/AppSidebarNav.js b/src/components/AppSidebarNav.js
index 9e16944..3841783 100644
--- a/src/components/AppSidebarNav.js
+++ b/src/components/AppSidebarNav.js
@@ -64,7 +64,6 @@ export const AppSidebarNav = ({ items }) => {
{items &&
items.map((item, index) =>
-
(item.items ? navGroup(item, index) : navItem(item, index)))}
)
diff --git a/src/index.js b/src/index.js
index 9318502..48b155f 100644
--- a/src/index.js
+++ b/src/index.js
@@ -12,7 +12,7 @@ import axios from 'axios'
const setupAxios = () => {
axios.defaults.baseURL = 'https://cmp-all-api.herokuapp.com/'
- // axios.defaults.baseURL = 'http://localhost:5000'
+ //axios.defaults.baseURL = 'http://localhost:5000'
axios.defaults.headers = {
'Cache-Control': 'no-cache,no-store',
'Pragma': 'no-cache',
diff --git a/src/views/Events/AllRegisterUser.js b/src/views/Events/AllRegisterUser.js
index 0dc0f91..38bab08 100644
--- a/src/views/Events/AllRegisterUser.js
+++ b/src/views/Events/AllRegisterUser.js
@@ -29,7 +29,7 @@ const AllRegisterUser = () => {
useEffect(() => {
getRegisterUser();
}, [getRegisterUser]);
- console.log(registerUser)
+ // console.log(registerUser)
//change time formate
function formatAMPM(date) {
var hours = new Date(date).getHours();
diff --git a/src/views/Profile/EditProfile.js b/src/views/Profile/EditProfile.js
index 520c35d..c874f01 100644
--- a/src/views/Profile/EditProfile.js
+++ b/src/views/Profile/EditProfile.js
@@ -117,7 +117,7 @@ const EditProfile = () => {
}
}
const handleCancle = () => {
- history.goBack()
+ history.push('/dashboard')
}
return (
@@ -143,7 +143,7 @@ const EditProfile = () => {
Phone *
-
+