edit profile
This commit is contained in:
parent
83bd2c9d22
commit
0a5bc6d258
@ -64,7 +64,6 @@ export const AppSidebarNav = ({ items }) => {
|
|||||||
<React.Fragment>
|
<React.Fragment>
|
||||||
{items &&
|
{items &&
|
||||||
items.map((item, index) =>
|
items.map((item, index) =>
|
||||||
|
|
||||||
(item.items ? navGroup(item, index) : navItem(item, index)))}
|
(item.items ? navGroup(item, index) : navItem(item, index)))}
|
||||||
</React.Fragment>
|
</React.Fragment>
|
||||||
)
|
)
|
||||||
|
@ -12,7 +12,7 @@ import axios from 'axios'
|
|||||||
|
|
||||||
const setupAxios = () => {
|
const setupAxios = () => {
|
||||||
axios.defaults.baseURL = 'https://cmp-all-api.herokuapp.com/'
|
axios.defaults.baseURL = 'https://cmp-all-api.herokuapp.com/'
|
||||||
// axios.defaults.baseURL = 'http://localhost:5000'
|
//axios.defaults.baseURL = 'http://localhost:5000'
|
||||||
axios.defaults.headers = {
|
axios.defaults.headers = {
|
||||||
'Cache-Control': 'no-cache,no-store',
|
'Cache-Control': 'no-cache,no-store',
|
||||||
'Pragma': 'no-cache',
|
'Pragma': 'no-cache',
|
||||||
|
@ -29,7 +29,7 @@ const AllRegisterUser = () => {
|
|||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
getRegisterUser();
|
getRegisterUser();
|
||||||
}, [getRegisterUser]);
|
}, [getRegisterUser]);
|
||||||
console.log(registerUser)
|
// console.log(registerUser)
|
||||||
//change time formate
|
//change time formate
|
||||||
function formatAMPM(date) {
|
function formatAMPM(date) {
|
||||||
var hours = new Date(date).getHours();
|
var hours = new Date(date).getHours();
|
||||||
|
@ -117,7 +117,7 @@ const EditProfile = () => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
const handleCancle = () => {
|
const handleCancle = () => {
|
||||||
history.goBack()
|
history.push('/dashboard')
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@ -143,7 +143,7 @@ const EditProfile = () => {
|
|||||||
</CCol>
|
</CCol>
|
||||||
<CCol md={6}>
|
<CCol md={6}>
|
||||||
<CFormLabel htmlFor="inputPassword4">Phone *</CFormLabel>
|
<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>
|
</CCol>
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user