Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
frontend
Commits
19bb92bc
Commit
19bb92bc
authored
Dec 28, 2023
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add registration date and wrapped owner to domain details page
parent
a73f6aa3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
3 deletions
+36
-3
NameDomainDetails.tsx
ui/nameDomain/NameDomainDetails.tsx
+36
-3
NameDomain.pw.tsx_default_details-tab-1.png
...screenshots__/NameDomain.pw.tsx_default_details-tab-1.png
+0
-0
No files found.
ui/nameDomain/NameDomainDetails.tsx
View file @
19bb92bc
...
...
@@ -28,6 +28,18 @@ const NameDomainDetails = ({ query }: Props) => {
return
(
<
Grid
columnGap=
{
8
}
rowGap=
{
3
}
templateColumns=
{
{
base
:
'
minmax(0, 1fr)
'
,
lg
:
'
max-content minmax(728px, auto)
'
}
}
>
{
query
.
data
?.
registration_date
&&
(
<
DetailsInfoItem
title=
"Registration date"
hint=
"The date the name was registered"
isLoading=
{
isLoading
}
>
<
IconSvg
name=
"clock"
boxSize=
{
5
}
color=
"gray.500"
verticalAlign=
"middle"
isLoading=
{
isLoading
}
mr=
{
2
}
/>
<
Skeleton
isLoaded=
{
!
isLoading
}
display=
"inline"
whiteSpace=
"pre-wrap"
lineHeight=
"20px"
>
{
dayjs
(
query
.
data
.
registration_date
).
format
(
'
llll
'
)
}
</
Skeleton
>
</
DetailsInfoItem
>
)
}
{
query
.
data
?.
expiry_date
&&
(
<
DetailsInfoItem
title=
"Expiration date"
...
...
@@ -36,9 +48,7 @@ const NameDomainDetails = ({ query }: Props) => {
isLoading=
{
isLoading
}
display=
"inline-block"
>
<
Skeleton
isLoaded=
{
!
isLoading
}
display=
"inline"
mr=
{
2
}
mt=
"-2px"
>
<
IconSvg
name=
"clock"
boxSize=
{
5
}
color=
"gray.500"
verticalAlign=
"middle"
/>
</
Skeleton
>
<
IconSvg
name=
"clock"
boxSize=
{
5
}
color=
"gray.500"
verticalAlign=
"middle"
isLoading=
{
isLoading
}
mr=
{
2
}
mt=
"-2px"
/>
{
hasExpired
&&
(
<>
<
Skeleton
isLoaded=
{
!
isLoading
}
display=
"inline"
whiteSpace=
"pre-wrap"
lineHeight=
"24px"
>
...
...
@@ -102,6 +112,29 @@ const NameDomainDetails = ({ query }: Props) => {
</
Tooltip
>
</
DetailsInfoItem
>
)
}
{
query
.
data
?.
wrapped_owner
&&
(
<
DetailsInfoItem
title=
"Wrapped controller"
hint=
"Owner of this NFT domain in NameWrapper contract"
isLoading=
{
isLoading
}
columnGap=
{
2
}
flexWrap=
"nowrap"
>
<
AddressEntity
address=
{
query
.
data
.
wrapped_owner
}
isLoading=
{
isLoading
}
/>
<
Tooltip
label=
"Lookup for related domain names"
>
<
LinkInternal
flexShrink=
{
0
}
display=
"inline-flex"
href=
{
route
({
pathname
:
'
/name-domains
'
,
query
:
{
owned_by
:
'
true
'
,
resolved_to
:
'
true
'
,
address
:
query
.
data
.
wrapped_owner
.
hash
}
})
}
>
<
IconSvg
name=
"search"
boxSize=
{
5
}
isLoading=
{
isLoading
}
/>
</
LinkInternal
>
</
Tooltip
>
</
DetailsInfoItem
>
)
}
<
DetailsInfoItem
title=
"Token ID"
hint=
"The Token ID of this domain name NFT"
...
...
ui/pages/__screenshots__/NameDomain.pw.tsx_default_details-tab-1.png
View replaced file @
a73f6aa3
View file @
19bb92bc
74.5 KB
|
W:
|
H:
81.4 KB
|
W:
|
H:
2-up
Swipe
Onion skin
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment