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> <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>
) )

View File

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

View File

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

View File

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