edit profile

This commit is contained in:
pawan-dot 2022-11-03 13:12:07 +05:30
parent 83bd2c9d22
commit 0a5bc6d258
4 changed files with 4 additions and 5 deletions

View File

@ -64,7 +64,6 @@ export const AppSidebarNav = ({ items }) => {
<React.Fragment>
{items &&
items.map((item, index) =>
(item.items ? navGroup(item, index) : navItem(item, index)))}
</React.Fragment>
)

View File

@ -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',

View File

@ -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();

View File

@ -117,7 +117,7 @@ const EditProfile = () => {
}
}
const handleCancle = () => {
history.goBack()
history.push('/dashboard')
}
return (
@ -143,7 +143,7 @@ const EditProfile = () => {
</CCol>
<CCol md={6}>
<CFormLabel htmlFor="inputPassword4">Phone *</CFormLabel>
<CFormInput type="number" id="inputPassword4" minlength="8" name='phone' value={ownerDetails.phone} onChange={handleChange} />
<CFormInput type="number" id="inputPassword4" minLength={8} name='phone' value={ownerDetails.phone} onChange={handleChange} />
</CCol>