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 5e8dfe8d
authored
2024-06-21 11:19:52 +0530
by
Chetan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
brand logo
1 parent
f67e11a1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
components/layout/Generics/GenericHeader.js
components/layout/Generics/GenericLayout.js
components/vendor/OrderListing.js
components/layout/Generics/GenericHeader.js
View file @
5e8dfe8
...
...
@@ -3,7 +3,7 @@ import Image from "next/image"
import
{
useRouter
}
from
"next/router"
;
import
{
signOut
}
from
"next-auth/react"
;
import
{
UserOutlined
}
from
'@ant-design/icons'
;
export
const
GenericHeader
=
({
venderBusiness
,
venderEmail
,
adminName
,
adminEmail
,
isRoute
})
=>
{
export
const
GenericHeader
=
({
venderBusiness
,
venderEmail
,
businessLogo
,
adminName
,
adminEmail
,
isRoute
})
=>
{
const
router
=
useRouter
();
const
VenderDetails
=
()
=>
{
return
<
div
>
...
...
@@ -14,7 +14,7 @@ export const GenericHeader = ({ venderBusiness, venderEmail, adminName, adminEma
<
/div
>
:
<
div
className
=
"d-flex align-items-center gap-3"
>
<
Skeleton
.
Image
style
=
{{
height
:
50
,
width
:
70
}}
/
>
<
Image
src
=
{
businessLogo
}
height
=
{
50
}
width
=
{
70
}
objectFit
=
"contain"
/>
<
div
className
=
"d-flex flex-column"
>
<
p
className
=
"m-0"
>
{
venderBusiness
}
<
/p
>
<
p
className
=
"m-0"
>
{
venderEmail
}
<
/p
>
...
...
components/layout/Generics/GenericLayout.js
View file @
5e8dfe8
...
...
@@ -35,6 +35,7 @@ export const GenericLayout = ({ children }) => {
<
GenericHeader
venderBusiness
=
{
vendorDetails
?.
attributes
?.
businessName
}
venderEmail
=
{
vendorDetails
?.
attributes
?.
email
}
businessLogo
=
{
vendorDetails
?.
attributes
?.
brandLogo
?.
data
?.
attributes
?.
url
}
adminName
=
{
loadedUser
?.
username
}
adminEmail
=
{
loadedUser
?.
email
}
isRoute
=
{
isRoute
}
...
...
components/vendor/OrderListing.js
View file @
5e8dfe8
...
...
@@ -114,7 +114,7 @@ const OrderListing = () => {
name
:
item
.
attributes
.
end_user
.
data
.
attributes
.
name
,
quantity
:
item
.
attributes
.
quantity
,
status
:
item
.
attributes
.
status
,
activityName
:
item
.
attributes
.
experience
.
data
.
attributes
.
name
activityName
:
item
?.
attributes
?.
experience
?.
data
?.
attributes
?
.
name
};
});
...
...
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