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 6bd2fb1d
authored
2024-06-17 19:06:34 +0530
by
jaymehta
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
.
1 parent
84a7c51d
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
12 deletions
components/admin/VendorDetails.js
components/admin/VendorListing.js
components/detail/GuestReviews.js
components/vendor/BusinessDetails.js
components/admin/VendorDetails.js
View file @
6bd2fb1
...
...
@@ -18,7 +18,7 @@ const VendorDetails = ({ id, backClick, setShowDetail, showDetail, detail }) =>
const
dispatch
=
useDispatch
();
useEffect
(()
=>
{
dispatch
(
getActivitiesForAdmin
({
vendorId
:
detail
[
0
].
id
}));
console
.
log
(
"cancel policy"
,
detail
[
0
])
console
.
log
(
"cancel policy"
,
detail
[
0
]);
},
[]);
useEffect
(()
=>
{
...
...
@@ -89,22 +89,22 @@ const VendorDetails = ({ id, backClick, setShowDetail, showDetail, detail }) =>
<
div
className
=
"row"
>
<
div
className
=
"col-12 col-lg-5"
>
<
p
className
=
"phead"
>
Business
Documents
<
/p
>
<
div
className
=
"row"
>
{
/*
<div className="row">
<p className="col-12 col-lg-6">Business PAN No.</p>
<p className="col-12 col-lg-6">{detail[0].attributes.pan}</p>
<
/div
>
<
div
className
=
"row"
>
</div> */
}
{
/*
<div className="row">
<p className="col-12 col-lg-6">PAN</p>
<p className="col-12 col-lg-6 pview">View</p>
<
/div
>
</div> */
}
<
div
className
=
"row"
>
<
p
className
=
"col-12 col-lg-6"
>
GST
Number
<
/p
>
<
p
className
=
"col-12 col-lg-6"
>
{
detail
[
0
].
attributes
.
gst
}
<
/p
>
<
p
className
=
"col-12 col-lg-6"
>
EIN
Number
<
/p
>
<
p
className
=
"col-12 col-lg-6"
>
{
detail
[
0
].
attributes
.
einNumber
}
<
/p
>
<
/div
>
<
div
className
=
"row"
>
{
/*
<div className="row">
<p className="col-12 col-lg-6">GST Certificate</p>
<p className="col-12 col-lg-6 pview">View</p>
<
/div
>
</div> */
}
<
div
className
=
"row"
>
<
p
className
=
"col-12 col-lg-6"
>
Business
Name
<
/p
>
<
p
className
=
"col-12 col-lg-6"
>
{
detail
[
0
].
attributes
.
businessName
}
<
/p
>
...
...
components/admin/VendorListing.js
View file @
6bd2fb1
...
...
@@ -14,7 +14,6 @@ const VendorListing = () => {
// Hooks
const
dispatch
=
useDispatch
();
const
router
=
useRouter
();
const
array
=
[
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
];
// useState
const
[
session
,
setSession
]
=
useState
();
const
[
loading
,
setLoading
]
=
useState
(
true
);
...
...
components/detail/GuestReviews.js
View file @
6bd2fb1
...
...
@@ -27,6 +27,8 @@ const GuestReviews = ({ activityById }) => {
setRating
(
newRating
);
};
console
.
log
(
"newRating"
,
rating
);
return
(
<>
<
section
className
=
"guest-reviews-session"
>
...
...
@@ -140,8 +142,8 @@ const GuestReviews = ({ activityById }) => {
<label className="
mb
-
3
">Rating: </label>{"
"}
<StarRatings
className="
col
-
3
mx
-
2
"
rating={
rating
}
starRatedColor="
#
ffe2
0
" // Set the rated color to yellow
rating={
3
}
starRatedColor="
#
00
0
" // Set the rated color to yellow
starHoverColor="
#
ffe20
" // Set the hover color to yellow
changeRating={handleRatingChange}
numberOfStars={5}
...
...
components/vendor/BusinessDetails.js
View file @
6bd2fb1
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