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
6ba967d2
Commit
6ba967d2
authored
Dec 25, 2023
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add cross links to lookup page
parent
4c3e6783
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
12 deletions
+30
-12
AddressEnsDomains.tsx
ui/address/ensDomains/AddressEnsDomains.tsx
+5
-2
NameDomainDetails.tsx
ui/nameDomain/NameDomainDetails.tsx
+12
-4
NameDomain.tsx
ui/pages/NameDomain.tsx
+13
-6
No files found.
ui/address/ensDomains/AddressEnsDomains.tsx
View file @
6ba967d2
import
{
Button
,
chakra
,
Flex
,
Grid
,
Icon
,
Popover
,
PopoverBody
,
PopoverContent
,
PopoverTrigger
,
Skeleton
,
useDisclosure
}
from
'
@chakra-ui/react
'
;
import
{
Button
,
chakra
,
Flex
,
Grid
,
Icon
,
Popover
,
PopoverBody
,
PopoverContent
,
PopoverTrigger
,
Skeleton
,
useDisclosure
}
from
'
@chakra-ui/react
'
;
import
React
from
'
react
'
;
import
React
from
'
react
'
;
import
{
route
}
from
'
nextjs-routes
'
;
import
config
from
'
configs/app
'
;
import
config
from
'
configs/app
'
;
import
arrowIcon
from
'
icons/arrows/east-mini.svg
'
;
import
arrowIcon
from
'
icons/arrows/east-mini.svg
'
;
import
ensIcon
from
'
icons/ENS_slim.svg
'
;
import
ensIcon
from
'
icons/ENS_slim.svg
'
;
...
@@ -98,8 +100,9 @@ const AddressEnsDomains = ({ addressHash, mainDomainName }: Props) => {
...
@@ -98,8 +100,9 @@ const AddressEnsDomains = ({ addressHash, mainDomainName }: Props) => {
</
div
>
</
div
>
)
}
)
}
{
(
ownedDomains
.
length
>
9
||
resolvedDomains
.
length
>
9
)
&&
(
{
(
ownedDomains
.
length
>
9
||
resolvedDomains
.
length
>
9
)
&&
(
// TODO @tom2drum add href to link
<
LinkInternal
<
LinkInternal
>
href=
{
route
({
pathname
:
'
/name-domains
'
,
query
:
{
ownedBy
:
'
true
'
,
resolvedTo
:
'
true
'
,
q
:
addressHash
}
})
}
>
<
span
>
More results
</
span
>
<
span
>
More results
</
span
>
<
chakra
.
span
color=
"text_secondary"
>
(
{
data
.
totalRecords
}
)
</
chakra
.
span
>
<
chakra
.
span
color=
"text_secondary"
>
(
{
data
.
totalRecords
}
)
</
chakra
.
span
>
</
LinkInternal
>
</
LinkInternal
>
...
...
ui/nameDomain/NameDomainDetails.tsx
View file @
6ba967d2
...
@@ -4,6 +4,8 @@ import React from 'react';
...
@@ -4,6 +4,8 @@ import React from 'react';
import
type
{
EnsDomainDetailed
}
from
'
types/api/ens
'
;
import
type
{
EnsDomainDetailed
}
from
'
types/api/ens
'
;
import
{
route
}
from
'
nextjs-routes
'
;
import
clockIcon
from
'
icons/clock.svg
'
;
import
clockIcon
from
'
icons/clock.svg
'
;
import
iconSearch
from
'
icons/search.svg
'
;
import
iconSearch
from
'
icons/search.svg
'
;
import
type
{
ResourceError
}
from
'
lib/api/resources
'
;
import
type
{
ResourceError
}
from
'
lib/api/resources
'
;
...
@@ -68,9 +70,12 @@ const NameDomainDetails = ({ query }: Props) => {
...
@@ -68,9 +70,12 @@ const NameDomainDetails = ({ query }: Props) => {
address=
{
query
.
data
.
registrant
}
address=
{
query
.
data
.
registrant
}
isLoading=
{
isLoading
}
isLoading=
{
isLoading
}
/>
/>
{
/* TODO @tom2drum add correct href */
}
<
Tooltip
label=
"Lookup for related domain names"
>
<
Tooltip
label=
"Lookup for related domain names"
>
<
LinkInternal
flexShrink=
{
0
}
display=
"inline-flex"
>
<
LinkInternal
flexShrink=
{
0
}
display=
"inline-flex"
href=
{
route
({
pathname
:
'
/name-domains
'
,
query
:
{
ownedBy
:
'
true
'
,
resolvedTo
:
'
true
'
,
q
:
query
.
data
.
registrant
.
hash
}
})
}
>
<
Icon
as=
{
iconSearch
}
boxSize=
{
5
}
isLoading=
{
isLoading
}
/>
<
Icon
as=
{
iconSearch
}
boxSize=
{
5
}
isLoading=
{
isLoading
}
/>
</
LinkInternal
>
</
LinkInternal
>
</
Tooltip
>
</
Tooltip
>
...
@@ -88,9 +93,12 @@ const NameDomainDetails = ({ query }: Props) => {
...
@@ -88,9 +93,12 @@ const NameDomainDetails = ({ query }: Props) => {
address=
{
query
.
data
.
owner
}
address=
{
query
.
data
.
owner
}
isLoading=
{
isLoading
}
isLoading=
{
isLoading
}
/>
/>
{
/* TODO @tom2drum add correct href */
}
<
Tooltip
label=
"Lookup for related domain names"
>
<
Tooltip
label=
"Lookup for related domain names"
>
<
LinkInternal
flexShrink=
{
0
}
display=
"inline-flex"
>
<
LinkInternal
flexShrink=
{
0
}
display=
"inline-flex"
href=
{
route
({
pathname
:
'
/name-domains
'
,
query
:
{
ownedBy
:
'
true
'
,
resolvedTo
:
'
true
'
,
q
:
query
.
data
.
owner
.
hash
}
})
}
>
<
Icon
as=
{
iconSearch
}
boxSize=
{
5
}
isLoading=
{
isLoading
}
/>
<
Icon
as=
{
iconSearch
}
boxSize=
{
5
}
isLoading=
{
isLoading
}
/>
</
LinkInternal
>
</
LinkInternal
>
</
Tooltip
>
</
Tooltip
>
...
...
ui/pages/NameDomain.tsx
View file @
6ba967d2
...
@@ -4,6 +4,8 @@ import React from 'react';
...
@@ -4,6 +4,8 @@ import React from 'react';
import
type
{
RoutedTab
}
from
'
ui/shared/Tabs/types
'
;
import
type
{
RoutedTab
}
from
'
ui/shared/Tabs/types
'
;
import
{
route
}
from
'
nextjs-routes
'
;
import
config
from
'
configs/app
'
;
import
config
from
'
configs/app
'
;
import
iconSearch
from
'
icons/search.svg
'
;
import
iconSearch
from
'
icons/search.svg
'
;
import
useApiQuery
from
'
lib/api/useApiQuery
'
;
import
useApiQuery
from
'
lib/api/useApiQuery
'
;
...
@@ -64,12 +66,17 @@ const NameDomain = () => {
...
@@ -64,12 +66,17 @@ const NameDomain = () => {
flexShrink=
{
0
}
flexShrink=
{
0
}
/>
/>
)
}
)
}
{
/* TODO @tom2drum add correct href */
}
{
infoQuery
.
data
?.
resolvedAddress
&&
(
<
Tooltip
label=
"Lookup for related domain names"
>
<
Tooltip
label=
"Lookup for related domain names"
>
<
LinkInternal
flexShrink=
{
0
}
display=
"inline-flex"
>
<
LinkInternal
<
Icon
as=
{
iconSearch
}
boxSize=
{
5
}
isLoading=
{
isLoading
}
/>
flexShrink=
{
0
}
</
LinkInternal
>
display=
"inline-flex"
</
Tooltip
>
href=
{
route
({
pathname
:
'
/name-domains
'
,
query
:
{
ownedBy
:
'
true
'
,
resolvedTo
:
'
true
'
,
q
:
infoQuery
.
data
?.
resolvedAddress
?.
hash
}
})
}
>
<
Icon
as=
{
iconSearch
}
boxSize=
{
5
}
isLoading=
{
isLoading
}
/>
</
LinkInternal
>
</
Tooltip
>
)
}
</
Flex
>
</
Flex
>
);
);
...
...
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