edit profile
This commit is contained in:
parent
83bd2c9d22
commit
0a5bc6d258
@ -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>
|
||||
)
|
||||
|
@ -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',
|
||||
|
@ -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();
|
||||
|
@ -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>
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user