Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Jay Mehta
/
zango-frontend
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Registry
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit 30cacd9b
authored
10 months ago
by
jaymehta
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'master' of
https://git.logicloop.io/jaymehta/zango-frontend
2 parents
33652f17
439c037c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
119 deletions
components/layout/VendorDashboardSidebar.js
components/vendor/ActivityDetails.js
components/layout/VendorDashboardSidebar.js
View file @
30cacd9
...
@@ -22,36 +22,44 @@ const Sidebar = () => {
...
@@ -22,36 +22,44 @@ const Sidebar = () => {
</button> */
}
</button> */
}
<
ul
>
<
ul
>
<
li
className
=
{
router
.
pathname
===
"/vendor/dashboard"
?
"active"
:
""
}
>
<
li
className
=
{
router
.
pathname
===
"/vendor/dashboard"
?
"active"
:
""
}
>
<
span
className
=
"d-flex"
>
<
Link
href
=
"/vendor/dashboard"
>
<
Image
className
=
""
alt
=
""
width
=
{
22
}
height
=
{
15
}
src
=
"/images/vendor/icon-dashboard.svg"
/>
<
span
className
=
"d-flex cursor-pointer"
>
<
div
className
=
"mx-2 text-center"
>
<
Image
className
=
""
alt
=
""
width
=
{
22
}
height
=
{
15
}
src
=
"/images/vendor/icon-dashboard.svg"
/>
<
Link
href
=
"/vendor/dashboard"
>
Dashboard
<
/Link
>
<
div
className
=
"mx-2 text-center"
>
<
/div
>
Dashboard
<
/span
>
<
/div
>
<
/span
>
<
/Link
>
<
/li
>
<
/li
>
<
li
className
=
{
router
.
pathname
===
"/vendor/enquiries"
?
"active"
:
""
}
>
<
li
className
=
{
router
.
pathname
===
"/vendor/enquiries"
?
"active"
:
""
}
>
<
span
className
=
"d-flex"
>
<
Link
href
=
"/vendor/enquiries"
>
<
Image
alt
=
""
width
=
{
22
}
height
=
{
15
}
src
=
"/images/vendor/icon-orders.svg"
/>
<
span
className
=
"d-flex cursor-pointer"
>
<
div
className
=
"mx-2 text-center"
>
<
Image
alt
=
""
width
=
{
22
}
height
=
{
15
}
src
=
"/images/vendor/icon-orders.svg"
/>
<
Link
href
=
"/vendor/enquiries"
>
Enquiries
<
/Link
>
<
div
className
=
"mx-2 text-center"
>
<
/div
>
Enquiries
<
/span
>
<
/div
>
<
/span
>
<
/Link
>
<
/li
>
<
/li
>
<
li
className
=
{
router
.
pathname
===
"/vendor/activities"
?
"active"
:
""
}
>
<
li
className
=
{
router
.
pathname
===
"/vendor/activities"
?
"active"
:
""
}
>
<
span
className
=
"d-flex"
>
<
Link
href
=
"/vendor/activities"
>
<
Image
alt
=
""
width
=
{
22
}
height
=
{
15
}
src
=
"/images/vendor/icon-activities.svg"
/>
<
span
className
=
"d-flex cursor-pointer"
>
<
div
className
=
"mx-2 text-center"
>
<
Image
alt
=
""
width
=
{
22
}
height
=
{
15
}
src
=
"/images/vendor/icon-activities.svg"
/>
<
Link
href
=
"/vendor/activities"
>
Activities
<
/Link
>
<
div
className
=
"mx-2 text-center"
>
<
/div
>
Activities
<
/span
>
<
/div
>
<
/span
>
<
/Link
>
<
/li
>
<
/li
>
<
li
className
=
{
router
.
pathname
===
"/vendor/reviews"
?
"active"
:
""
}
>
<
li
className
=
{
router
.
pathname
===
"/vendor/reviews"
?
"active"
:
""
}
>
<
span
className
=
"d-flex"
>
<
Link
href
=
"/vendor/reviews"
>
<
Image
alt
=
""
width
=
{
22
}
height
=
{
15
}
src
=
"/images/vendor/icon-orders.svg"
/>
<
span
className
=
"d-flex cursor-pointer"
>
<
div
className
=
"mx-2 text-center"
>
<
Image
alt
=
""
width
=
{
22
}
height
=
{
15
}
src
=
"/images/vendor/icon-orders.svg"
/>
<
Link
href
=
"/vendor/reviews"
>
Reviews
<
/Link
>
<
div
className
=
"mx-2 text-center"
>
<
/div
>
Reviews
<
/span
>
<
/div
>
<
/span
>
<
/Link
>
<
/li
>
<
/li
>
<
/ul
>
<
/ul
>
<
/div
>
<
/div
>
...
...
This diff is collapsed.
Click to expand it.
components/vendor/ActivityDetails.js
View file @
30cacd9
...
@@ -39,100 +39,6 @@ const getBase64 = file =>
...
@@ -39,100 +39,6 @@ const getBase64 = file =>
reader
.
onerror
=
error
=>
reject
(
error
);
reader
.
onerror
=
error
=>
reject
(
error
);
});
});
const
format
=
"HH:mm"
;
let
timeArray
=
[];
const
hoursArray
=
[
{
value
:
"01"
,
label
:
"01"
},
{
value
:
"02"
,
label
:
"02"
},
{
value
:
"03"
,
label
:
"03"
},
{
value
:
"04"
,
label
:
"04"
},
{
value
:
"05"
,
label
:
"05"
},
{
value
:
"06"
,
label
:
"06"
},
{
value
:
"07"
,
label
:
"07"
},
{
value
:
"08"
,
label
:
"08"
},
{
value
:
"09"
,
label
:
"09"
},
{
value
:
"10"
,
label
:
"10"
},
{
value
:
"11"
,
label
:
"11"
},
{
value
:
"12"
,
label
:
"12"
}
];
const
minutesArray
=
[
{
value
:
"00"
,
label
:
"00"
},
{
value
:
"01"
,
label
:
"01"
},
{
value
:
"02"
,
label
:
"02"
},
{
value
:
"03"
,
label
:
"03"
},
{
value
:
"04"
,
label
:
"04"
},
{
value
:
"05"
,
label
:
"05"
},
{
value
:
"06"
,
label
:
"06"
},
{
value
:
"07"
,
label
:
"07"
},
{
value
:
"08"
,
label
:
"08"
},
{
value
:
"09"
,
label
:
"09"
},
{
value
:
"10"
,
label
:
"10"
},
{
value
:
"11"
,
label
:
"11"
},
{
value
:
"12"
,
label
:
"12"
},
{
value
:
"13"
,
label
:
"13"
},
{
value
:
"14"
,
label
:
"14"
},
{
value
:
"15"
,
label
:
"15"
},
{
value
:
"16"
,
label
:
"16"
},
{
value
:
"17"
,
label
:
"17"
},
{
value
:
"18"
,
label
:
"18"
},
{
value
:
"19"
,
label
:
"19"
},
{
value
:
"20"
,
label
:
"20"
},
{
value
:
"21"
,
label
:
"21"
},
{
value
:
"22"
,
label
:
"22"
},
{
value
:
"23"
,
label
:
"23"
},
{
value
:
"24"
,
label
:
"24"
},
{
value
:
"25"
,
label
:
"25"
},
{
value
:
"26"
,
label
:
"26"
},
{
value
:
"27"
,
label
:
"27"
},
{
value
:
"28"
,
label
:
"28"
},
{
value
:
"29"
,
label
:
"29"
},
{
value
:
"30"
,
label
:
"30"
},
{
value
:
"31"
,
label
:
"31"
},
{
value
:
"32"
,
label
:
"32"
},
{
value
:
"33"
,
label
:
"33"
},
{
value
:
"34"
,
label
:
"34"
},
{
value
:
"35"
,
label
:
"35"
},
{
value
:
"36"
,
label
:
"36"
},
{
value
:
"37"
,
label
:
"37"
},
{
value
:
"38"
,
label
:
"38"
},
{
value
:
"39"
,
label
:
"39"
},
{
value
:
"40"
,
label
:
"40"
},
{
value
:
"41"
,
label
:
"41"
},
{
value
:
"42"
,
label
:
"42"
},
{
value
:
"43"
,
label
:
"43"
},
{
value
:
"44"
,
label
:
"44"
},
{
value
:
"45"
,
label
:
"45"
},
{
value
:
"46"
,
label
:
"46"
},
{
value
:
"47"
,
label
:
"47"
},
{
value
:
"48"
,
label
:
"48"
},
{
value
:
"49"
,
label
:
"49"
},
{
value
:
"50"
,
label
:
"50"
},
{
value
:
"51"
,
label
:
"51"
},
{
value
:
"52"
,
label
:
"52"
},
{
value
:
"53"
,
label
:
"53"
},
{
value
:
"54"
,
label
:
"54"
},
{
value
:
"55"
,
label
:
"55"
},
{
value
:
"56"
,
label
:
"56"
},
{
value
:
"57"
,
label
:
"57"
},
{
value
:
"58"
,
label
:
"58"
},
{
value
:
"59"
,
label
:
"59"
}
];
const
monthsArray
=
[
{
value
:
"january"
,
label
:
"January"
},
{
value
:
"february"
,
label
:
"February"
},
{
value
:
"march"
,
label
:
"March"
},
{
value
:
"april"
,
label
:
"April"
},
{
value
:
"may"
,
label
:
"May"
},
{
value
:
"june"
,
label
:
"June"
},
{
value
:
"july"
,
label
:
"July"
},
{
value
:
"august"
,
label
:
"August"
},
{
value
:
"september"
,
label
:
"September"
},
{
value
:
"october"
,
label
:
"October"
},
{
value
:
"november"
,
label
:
"November"
},
{
value
:
"december"
,
label
:
"December"
}
];
// import { colourOptions } from '../data';
// import { colourOptions } from '../data';
const
animatedComponents
=
makeAnimated
();
const
animatedComponents
=
makeAnimated
();
const
ActivityDetails
=
({
isUpdate
})
=>
{
const
ActivityDetails
=
({
isUpdate
})
=>
{
...
@@ -402,7 +308,7 @@ const ActivityDetails = ({ isUpdate }) => {
...
@@ -402,7 +308,7 @@ const ActivityDetails = ({ isUpdate }) => {
}}
}}
validationSchema
=
{
activityDetailsValidationSchema
}
validationSchema
=
{
activityDetailsValidationSchema
}
// enableReinitialize={true}
// enableReinitialize={true}
onSubmit
=
{
values
=>
{}}
onSubmit
=
{
values
=>
{
}}
>
>
{({
values
,
errors
,
touched
,
handleChange
,
handleBlur
,
handleSubmit
,
setFieldValue
,
resetForm
})
=>
(
{({
values
,
errors
,
touched
,
handleChange
,
handleBlur
,
handleSubmit
,
setFieldValue
,
resetForm
})
=>
(
<
Form
<
Form
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment