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
c3675400
Commit
c3675400
authored
Jun 28, 2024
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
create custom Popover component with default gutter prop
parent
48d6f5b5
Changes
35
Hide whitespace changes
Inline
Side-by-side
Showing
35 changed files
with
73 additions
and
38 deletions
+73
-38
.eslintrc.js
.eslintrc.js
+1
-0
SolidityscanReport.tsx
ui/address/SolidityscanReport.tsx
+2
-1
ContractCodeIdes.tsx
ui/address/contract/ContractCodeIdes.tsx
+1
-1
ContractExternalLibraries.tsx
ui/address/contract/ContractExternalLibraries.tsx
+1
-1
ContractMethodMultiplyButton.tsx
...ss/contract/methods/form/ContractMethodMultiplyButton.tsx
+1
-1
AddressEnsDomains.tsx
ui/address/ensDomains/AddressEnsDomains.tsx
+1
-1
TokenSelectDesktop.tsx
ui/address/tokenSelect/TokenSelectDesktop.tsx
+3
-1
ContractVerificationFieldMethod.tsx
...ctVerification/fields/ContractVerificationFieldMethod.tsx
+1
-1
AppSecurityReport.tsx
ui/marketplace/AppSecurityReport.tsx
+2
-1
ContractSecurityReport.tsx
ui/marketplace/ContractSecurityReport.tsx
+2
-1
MarketplaceAppInfo.tsx
ui/marketplace/MarketplaceAppInfo.tsx
+2
-1
SearchResultsInput.tsx
ui/searchResults/SearchResultsInput.tsx
+3
-2
EntityTagPopover.tsx
ui/shared/EntityTags/EntityTagPopover.tsx
+3
-2
EntityTags.tsx
ui/shared/EntityTags/EntityTags.tsx
+2
-1
NetworkExplorers.tsx
ui/shared/NetworkExplorers.tsx
+1
-1
TabsMenu.tsx
ui/shared/Tabs/TabsMenu.tsx
+3
-1
Popover.tsx
ui/shared/chakra/Popover.tsx
+10
-0
EnsEntity.tsx
ui/shared/entities/ens/EnsEntity.tsx
+2
-1
PopoverFilter.tsx
ui/shared/filters/PopoverFilter.tsx
+1
-1
PopoverFilterRadio.tsx
ui/shared/filters/PopoverFilterRadio.tsx
+1
-1
GasInfoTooltip.tsx
ui/shared/gas/GasInfoTooltip.tsx
+1
-1
Sort.tsx
ui/shared/sort/Sort.tsx
+1
-1
IntTxsIndexingStatus.tsx
ui/snippets/footer/IntTxsIndexingStatus.tsx
+2
-1
NavLinkGroup.tsx
ui/snippets/navigation/horizontal/NavLinkGroup.tsx
+3
-1
NavLinkGroup.tsx
ui/snippets/navigation/vertical/NavLinkGroup.tsx
+2
-1
NetworkMenu.tsx
ui/snippets/networkMenu/NetworkMenu.tsx
+4
-2
ProfileMenuDesktop.tsx
ui/snippets/profileMenu/ProfileMenuDesktop.tsx
+2
-1
SearchBar.tsx
ui/snippets/searchBar/SearchBar.tsx
+2
-2
DeFiDropdown.tsx
ui/snippets/topBar/DeFiDropdown.tsx
+2
-1
NetworkMenu.tsx
ui/snippets/topBar/NetworkMenu.tsx
+2
-1
Settings.tsx
ui/snippets/topBar/settings/Settings.tsx
+2
-1
WalletMenuDesktop.tsx
ui/snippets/walletMenu/WalletMenuDesktop.tsx
+2
-2
TokenProjectInfo.tsx
ui/token/TokenProjectInfo.tsx
+2
-1
NovesActionSnippet.tsx
ui/tx/assetFlows/components/NovesActionSnippet.tsx
+2
-1
TxAdditionalInfo.tsx
ui/txs/TxAdditionalInfo.tsx
+1
-1
No files found.
.eslintrc.js
View file @
c3675400
...
@@ -5,6 +5,7 @@ const RESTRICTED_MODULES = {
...
@@ -5,6 +5,7 @@ const RESTRICTED_MODULES = {
{
name
:
'
@metamask/providers
'
,
message
:
'
Please lazy-load @metamask/providers or use useProvider hook instead
'
},
{
name
:
'
@metamask/providers
'
,
message
:
'
Please lazy-load @metamask/providers or use useProvider hook instead
'
},
{
name
:
'
@metamask/post-message-stream
'
,
message
:
'
Please lazy-load @metamask/post-message-stream or use useProvider hook instead
'
},
{
name
:
'
@metamask/post-message-stream
'
,
message
:
'
Please lazy-load @metamask/post-message-stream or use useProvider hook instead
'
},
{
name
:
'
playwright/TestApp
'
,
message
:
'
Please use render() fixture from test() function of playwright/lib module
'
},
{
name
:
'
playwright/TestApp
'
,
message
:
'
Please use render() fixture from test() function of playwright/lib module
'
},
{
name
:
'
@chakra-ui/react
'
,
importNames
:
[
'
Popover
'
],
message
:
'
Please use ui/shared/chakra/Popover.tsx component instead
'
},
],
],
patterns
:
[
patterns
:
[
'
icons/*
'
,
'
icons/*
'
,
...
...
ui/address/SolidityscanReport.tsx
View file @
c3675400
import
{
Box
,
Text
,
Icon
,
Popover
,
Popover
Trigger
,
PopoverContent
,
PopoverBody
,
useDisclosure
}
from
'
@chakra-ui/react
'
;
import
{
Box
,
Text
,
Icon
,
PopoverTrigger
,
PopoverContent
,
PopoverBody
,
useDisclosure
}
from
'
@chakra-ui/react
'
;
import
React
from
'
react
'
;
import
React
from
'
react
'
;
// This icon doesn't work properly when it is in the sprite
// This icon doesn't work properly when it is in the sprite
...
@@ -7,6 +7,7 @@ import React from 'react';
...
@@ -7,6 +7,7 @@ import React from 'react';
import
solidityScanIcon
from
'
icons/brands/solidity_scan.svg
'
;
import
solidityScanIcon
from
'
icons/brands/solidity_scan.svg
'
;
import
useApiQuery
from
'
lib/api/useApiQuery
'
;
import
useApiQuery
from
'
lib/api/useApiQuery
'
;
import
{
SOLIDITYSCAN_REPORT
}
from
'
stubs/contract
'
;
import
{
SOLIDITYSCAN_REPORT
}
from
'
stubs/contract
'
;
import
Popover
from
'
ui/shared/chakra/Popover
'
;
import
LinkExternal
from
'
ui/shared/links/LinkExternal
'
;
import
LinkExternal
from
'
ui/shared/links/LinkExternal
'
;
import
SolidityscanReportButton
from
'
ui/shared/solidityscanReport/SolidityscanReportButton
'
;
import
SolidityscanReportButton
from
'
ui/shared/solidityscanReport/SolidityscanReportButton
'
;
import
SolidityscanReportDetails
from
'
ui/shared/solidityscanReport/SolidityscanReportDetails
'
;
import
SolidityscanReportDetails
from
'
ui/shared/solidityscanReport/SolidityscanReportDetails
'
;
...
...
ui/address/contract/ContractCodeIdes.tsx
View file @
c3675400
...
@@ -2,7 +2,6 @@ import {
...
@@ -2,7 +2,6 @@ import {
Flex
,
Flex
,
Button
,
Button
,
chakra
,
chakra
,
Popover
,
PopoverTrigger
,
PopoverTrigger
,
PopoverBody
,
PopoverBody
,
PopoverContent
,
PopoverContent
,
...
@@ -14,6 +13,7 @@ import {
...
@@ -14,6 +13,7 @@ import {
import
React
from
'
react
'
;
import
React
from
'
react
'
;
import
config
from
'
configs/app
'
;
import
config
from
'
configs/app
'
;
import
Popover
from
'
ui/shared/chakra/Popover
'
;
import
IconSvg
from
'
ui/shared/IconSvg
'
;
import
IconSvg
from
'
ui/shared/IconSvg
'
;
import
LinkExternal
from
'
ui/shared/links/LinkExternal
'
;
import
LinkExternal
from
'
ui/shared/links/LinkExternal
'
;
...
...
ui/address/contract/ContractExternalLibraries.tsx
View file @
c3675400
...
@@ -7,7 +7,6 @@ import {
...
@@ -7,7 +7,6 @@ import {
Modal
,
Modal
,
ModalCloseButton
,
ModalCloseButton
,
ModalContent
,
ModalContent
,
Popover
,
PopoverBody
,
PopoverBody
,
PopoverContent
,
PopoverContent
,
PopoverTrigger
,
PopoverTrigger
,
...
@@ -22,6 +21,7 @@ import type { SmartContractExternalLibrary } from 'types/api/contract';
...
@@ -22,6 +21,7 @@ import type { SmartContractExternalLibrary } from 'types/api/contract';
import
useIsMobile
from
'
lib/hooks/useIsMobile
'
;
import
useIsMobile
from
'
lib/hooks/useIsMobile
'
;
import
{
apos
}
from
'
lib/html-entities
'
;
import
{
apos
}
from
'
lib/html-entities
'
;
import
Popover
from
'
ui/shared/chakra/Popover
'
;
import
AddressEntity
from
'
ui/shared/entities/address/AddressEntity
'
;
import
AddressEntity
from
'
ui/shared/entities/address/AddressEntity
'
;
import
IconSvg
from
'
ui/shared/IconSvg
'
;
import
IconSvg
from
'
ui/shared/IconSvg
'
;
...
...
ui/address/contract/methods/form/ContractMethodMultiplyButton.tsx
View file @
c3675400
import
{
import
{
chakra
,
chakra
,
Popover
,
PopoverBody
,
PopoverBody
,
PopoverContent
,
PopoverContent
,
PopoverTrigger
,
PopoverTrigger
,
...
@@ -14,6 +13,7 @@ import {
...
@@ -14,6 +13,7 @@ import {
import
React
from
'
react
'
;
import
React
from
'
react
'
;
import
{
times
}
from
'
lib/html-entities
'
;
import
{
times
}
from
'
lib/html-entities
'
;
import
Popover
from
'
ui/shared/chakra/Popover
'
;
import
IconSvg
from
'
ui/shared/IconSvg
'
;
import
IconSvg
from
'
ui/shared/IconSvg
'
;
interface
Props
{
interface
Props
{
...
...
ui/address/ensDomains/AddressEnsDomains.tsx
View file @
c3675400
...
@@ -4,7 +4,6 @@ import {
...
@@ -4,7 +4,6 @@ import {
Flex
,
Flex
,
Grid
,
Grid
,
Hide
,
Hide
,
Popover
,
PopoverBody
,
PopoverBody
,
PopoverContent
,
PopoverContent
,
PopoverTrigger
,
PopoverTrigger
,
...
@@ -23,6 +22,7 @@ import { route } from 'nextjs-routes';
...
@@ -23,6 +22,7 @@ import { route } from 'nextjs-routes';
import
type
{
ResourceError
}
from
'
lib/api/resources
'
;
import
type
{
ResourceError
}
from
'
lib/api/resources
'
;
import
dayjs
from
'
lib/date/dayjs
'
;
import
dayjs
from
'
lib/date/dayjs
'
;
import
Popover
from
'
ui/shared/chakra/Popover
'
;
import
EnsEntity
from
'
ui/shared/entities/ens/EnsEntity
'
;
import
EnsEntity
from
'
ui/shared/entities/ens/EnsEntity
'
;
import
IconSvg
from
'
ui/shared/IconSvg
'
;
import
IconSvg
from
'
ui/shared/IconSvg
'
;
import
LinkInternal
from
'
ui/shared/links/LinkInternal
'
;
import
LinkInternal
from
'
ui/shared/links/LinkInternal
'
;
...
...
ui/address/tokenSelect/TokenSelectDesktop.tsx
View file @
c3675400
import
{
Popover
,
Popover
Trigger
,
PopoverContent
,
PopoverBody
,
useDisclosure
}
from
'
@chakra-ui/react
'
;
import
{
PopoverTrigger
,
PopoverContent
,
PopoverBody
,
useDisclosure
}
from
'
@chakra-ui/react
'
;
import
React
from
'
react
'
;
import
React
from
'
react
'
;
import
type
{
FormattedData
}
from
'
./types
'
;
import
type
{
FormattedData
}
from
'
./types
'
;
import
Popover
from
'
ui/shared/chakra/Popover
'
;
import
TokenSelectButton
from
'
./TokenSelectButton
'
;
import
TokenSelectButton
from
'
./TokenSelectButton
'
;
import
TokenSelectMenu
from
'
./TokenSelectMenu
'
;
import
TokenSelectMenu
from
'
./TokenSelectMenu
'
;
import
useTokenSelect
from
'
./useTokenSelect
'
;
import
useTokenSelect
from
'
./useTokenSelect
'
;
...
...
ui/contractVerification/fields/ContractVerificationFieldMethod.tsx
View file @
c3675400
import
{
import
{
Link
,
Link
,
chakra
,
chakra
,
Popover
,
PopoverTrigger
,
PopoverTrigger
,
Portal
,
Portal
,
PopoverContent
,
PopoverContent
,
...
@@ -21,6 +20,7 @@ import type { FormFields } from '../types';
...
@@ -21,6 +20,7 @@ import type { FormFields } from '../types';
import
type
{
SmartContractVerificationConfig
,
SmartContractVerificationMethod
}
from
'
types/api/contract
'
;
import
type
{
SmartContractVerificationConfig
,
SmartContractVerificationMethod
}
from
'
types/api/contract
'
;
import
useIsMobile
from
'
lib/hooks/useIsMobile
'
;
import
useIsMobile
from
'
lib/hooks/useIsMobile
'
;
import
Popover
from
'
ui/shared/chakra/Popover
'
;
import
FancySelect
from
'
ui/shared/FancySelect/FancySelect
'
;
import
FancySelect
from
'
ui/shared/FancySelect/FancySelect
'
;
import
IconSvg
from
'
ui/shared/IconSvg
'
;
import
IconSvg
from
'
ui/shared/IconSvg
'
;
...
...
ui/marketplace/AppSecurityReport.tsx
View file @
c3675400
import
{
Box
,
Text
,
Link
,
Popover
,
Popover
Trigger
,
PopoverBody
,
PopoverContent
,
useDisclosure
,
chakra
,
Flex
,
Divider
,
Icon
}
from
'
@chakra-ui/react
'
;
import
{
Box
,
Text
,
Link
,
PopoverTrigger
,
PopoverBody
,
PopoverContent
,
useDisclosure
,
chakra
,
Flex
,
Divider
,
Icon
}
from
'
@chakra-ui/react
'
;
import
React
from
'
react
'
;
import
React
from
'
react
'
;
import
type
{
MarketplaceAppSecurityReport
}
from
'
types/client/marketplace
'
;
import
type
{
MarketplaceAppSecurityReport
}
from
'
types/client/marketplace
'
;
...
@@ -11,6 +11,7 @@ import config from 'configs/app';
...
@@ -11,6 +11,7 @@ import config from 'configs/app';
import
solidityScanIcon
from
'
icons/brands/solidity_scan.svg
'
;
import
solidityScanIcon
from
'
icons/brands/solidity_scan.svg
'
;
import
{
apos
}
from
'
lib/html-entities
'
;
import
{
apos
}
from
'
lib/html-entities
'
;
import
*
as
mixpanel
from
'
lib/mixpanel/index
'
;
import
*
as
mixpanel
from
'
lib/mixpanel/index
'
;
import
Popover
from
'
ui/shared/chakra/Popover
'
;
import
IconSvg
from
'
ui/shared/IconSvg
'
;
import
IconSvg
from
'
ui/shared/IconSvg
'
;
import
SolidityscanReportButton
from
'
ui/shared/solidityscanReport/SolidityscanReportButton
'
;
import
SolidityscanReportButton
from
'
ui/shared/solidityscanReport/SolidityscanReportButton
'
;
import
SolidityscanReportDetails
from
'
ui/shared/solidityscanReport/SolidityscanReportDetails
'
;
import
SolidityscanReportDetails
from
'
ui/shared/solidityscanReport/SolidityscanReportDetails
'
;
...
...
ui/marketplace/ContractSecurityReport.tsx
View file @
c3675400
import
{
Box
,
Text
,
Popover
,
Popover
Trigger
,
PopoverBody
,
PopoverContent
,
useDisclosure
,
Icon
}
from
'
@chakra-ui/react
'
;
import
{
Box
,
Text
,
PopoverTrigger
,
PopoverBody
,
PopoverContent
,
useDisclosure
,
Icon
}
from
'
@chakra-ui/react
'
;
import
React
from
'
react
'
;
import
React
from
'
react
'
;
import
type
{
SolidityscanReport
}
from
'
types/api/contract
'
;
import
type
{
SolidityscanReport
}
from
'
types/api/contract
'
;
...
@@ -9,6 +9,7 @@ import config from 'configs/app';
...
@@ -9,6 +9,7 @@ import config from 'configs/app';
// eslint-disable-next-line no-restricted-imports
// eslint-disable-next-line no-restricted-imports
import
solidityScanIcon
from
'
icons/brands/solidity_scan.svg
'
;
import
solidityScanIcon
from
'
icons/brands/solidity_scan.svg
'
;
import
*
as
mixpanel
from
'
lib/mixpanel/index
'
;
import
*
as
mixpanel
from
'
lib/mixpanel/index
'
;
import
Popover
from
'
ui/shared/chakra/Popover
'
;
import
LinkExternal
from
'
ui/shared/links/LinkExternal
'
;
import
LinkExternal
from
'
ui/shared/links/LinkExternal
'
;
import
SolidityscanReportButton
from
'
ui/shared/solidityscanReport/SolidityscanReportButton
'
;
import
SolidityscanReportButton
from
'
ui/shared/solidityscanReport/SolidityscanReportButton
'
;
import
SolidityscanReportDetails
from
'
ui/shared/solidityscanReport/SolidityscanReportDetails
'
;
import
SolidityscanReportDetails
from
'
ui/shared/solidityscanReport/SolidityscanReportDetails
'
;
...
...
ui/marketplace/MarketplaceAppInfo.tsx
View file @
c3675400
import
{
import
{
Popover
,
Popover
Trigger
,
PopoverContent
,
PopoverBody
,
PopoverTrigger
,
PopoverContent
,
PopoverBody
,
Modal
,
ModalContent
,
ModalCloseButton
,
useDisclosure
,
Modal
,
ModalContent
,
ModalCloseButton
,
useDisclosure
,
}
from
'
@chakra-ui/react
'
;
}
from
'
@chakra-ui/react
'
;
import
React
from
'
react
'
;
import
React
from
'
react
'
;
...
@@ -7,6 +7,7 @@ import React from 'react';
...
@@ -7,6 +7,7 @@ import React from 'react';
import
type
{
MarketplaceAppOverview
}
from
'
types/client/marketplace
'
;
import
type
{
MarketplaceAppOverview
}
from
'
types/client/marketplace
'
;
import
useIsMobile
from
'
lib/hooks/useIsMobile
'
;
import
useIsMobile
from
'
lib/hooks/useIsMobile
'
;
import
Popover
from
'
ui/shared/chakra/Popover
'
;
import
Content
from
'
./MarketplaceAppInfo/Content
'
;
import
Content
from
'
./MarketplaceAppInfo/Content
'
;
import
TriggerButton
from
'
./MarketplaceAppInfo/TriggerButton
'
;
import
TriggerButton
from
'
./MarketplaceAppInfo/TriggerButton
'
;
...
...
ui/searchResults/SearchResultsInput.tsx
View file @
c3675400
import
{
Popover
,
Popover
Trigger
,
PopoverContent
,
PopoverBody
,
useDisclosure
}
from
'
@chakra-ui/react
'
;
import
{
PopoverTrigger
,
PopoverContent
,
PopoverBody
,
useDisclosure
}
from
'
@chakra-ui/react
'
;
import
_debounce
from
'
lodash/debounce
'
;
import
_debounce
from
'
lodash/debounce
'
;
import
type
{
FormEvent
,
FocusEvent
}
from
'
react
'
;
import
type
{
FormEvent
,
FocusEvent
}
from
'
react
'
;
import
React
from
'
react
'
;
import
React
from
'
react
'
;
import
useIsMobile
from
'
lib/hooks/useIsMobile
'
;
import
useIsMobile
from
'
lib/hooks/useIsMobile
'
;
import
{
getRecentSearchKeywords
}
from
'
lib/recentSearchKeywords
'
;
import
{
getRecentSearchKeywords
}
from
'
lib/recentSearchKeywords
'
;
import
Popover
from
'
ui/shared/chakra/Popover
'
;
import
SearchBarBackdrop
from
'
ui/snippets/searchBar/SearchBarBackdrop
'
;
import
SearchBarBackdrop
from
'
ui/snippets/searchBar/SearchBarBackdrop
'
;
import
SearchBarInput
from
'
ui/snippets/searchBar/SearchBarInput
'
;
import
SearchBarInput
from
'
ui/snippets/searchBar/SearchBarInput
'
;
import
SearchBarRecentKeywords
from
'
ui/snippets/searchBar/SearchBarRecentKeywords
'
;
import
SearchBarRecentKeywords
from
'
ui/snippets/searchBar/SearchBarRecentKeywords
'
;
...
@@ -76,7 +77,7 @@ const SearchResultsInput = ({ searchTerm, handleSubmit, handleSearchTermChange }
...
@@ -76,7 +77,7 @@ const SearchResultsInput = ({ searchTerm, handleSubmit, handleSearchTermChange }
autoFocus=
{
false
}
autoFocus=
{
false
}
onClose=
{
onClose
}
onClose=
{
onClose
}
placement=
"bottom-start"
placement=
"bottom-start"
offset=
{
isMobile
?
[
16
,
-
12
]
:
undefined
}
offset=
{
isMobile
?
[
16
,
-
12
]
:
[
0
,
8
]
}
isLazy
isLazy
>
>
<
PopoverTrigger
>
<
PopoverTrigger
>
...
...
ui/shared/EntityTags/EntityTagPopover.tsx
View file @
c3675400
import
{
chakra
,
Image
,
Flex
,
Popover
,
Popover
Arrow
,
PopoverBody
,
PopoverContent
,
PopoverTrigger
,
useColorModeValue
,
DarkMode
}
from
'
@chakra-ui/react
'
;
import
{
chakra
,
Image
,
Flex
,
PopoverArrow
,
PopoverBody
,
PopoverContent
,
PopoverTrigger
,
useColorModeValue
,
DarkMode
}
from
'
@chakra-ui/react
'
;
import
React
from
'
react
'
;
import
React
from
'
react
'
;
import
type
{
EntityTag
}
from
'
./types
'
;
import
type
{
EntityTag
}
from
'
./types
'
;
import
makePrettyLink
from
'
lib/makePrettyLink
'
;
import
makePrettyLink
from
'
lib/makePrettyLink
'
;
import
*
as
mixpanel
from
'
lib/mixpanel/index
'
;
import
*
as
mixpanel
from
'
lib/mixpanel/index
'
;
import
Popover
from
'
ui/shared/chakra/Popover
'
;
import
LinkExternal
from
'
ui/shared/links/LinkExternal
'
;
import
LinkExternal
from
'
ui/shared/links/LinkExternal
'
;
interface
Props
{
interface
Props
{
...
@@ -35,7 +36,7 @@ const EntityTagPopover = ({ data, children }: Props) => {
...
@@ -35,7 +36,7 @@ const EntityTagPopover = ({ data, children }: Props) => {
}
}
return
(
return
(
<
Popover
trigger=
"hover"
isLazy
>
<
Popover
trigger=
"hover"
isLazy
gutter=
{
8
}
>
<
PopoverTrigger
>
<
PopoverTrigger
>
{
children
}
{
children
}
</
PopoverTrigger
>
</
PopoverTrigger
>
...
...
ui/shared/EntityTags/EntityTags.tsx
View file @
c3675400
import
{
Box
,
Flex
,
Popover
,
Popover
Body
,
PopoverContent
,
PopoverTrigger
,
chakra
}
from
'
@chakra-ui/react
'
;
import
{
Box
,
Flex
,
PopoverBody
,
PopoverContent
,
PopoverTrigger
,
chakra
}
from
'
@chakra-ui/react
'
;
import
React
from
'
react
'
;
import
React
from
'
react
'
;
import
type
{
EntityTag
as
TEntityTag
}
from
'
./types
'
;
import
type
{
EntityTag
as
TEntityTag
}
from
'
./types
'
;
import
config
from
'
configs/app
'
;
import
config
from
'
configs/app
'
;
import
useIsMobile
from
'
lib/hooks/useIsMobile
'
;
import
useIsMobile
from
'
lib/hooks/useIsMobile
'
;
import
Popover
from
'
ui/shared/chakra/Popover
'
;
import
Tag
from
'
ui/shared/chakra/Tag
'
;
import
Tag
from
'
ui/shared/chakra/Tag
'
;
import
EntityTag
from
'
./EntityTag
'
;
import
EntityTag
from
'
./EntityTag
'
;
...
...
ui/shared/NetworkExplorers.tsx
View file @
c3675400
import
{
import
{
Image
,
Image
,
Button
,
Button
,
Popover
,
PopoverTrigger
,
PopoverTrigger
,
PopoverBody
,
PopoverBody
,
PopoverContent
,
PopoverContent
,
...
@@ -18,6 +17,7 @@ import type { NetworkExplorer as TNetworkExplorer } from 'types/networks';
...
@@ -18,6 +17,7 @@ import type { NetworkExplorer as TNetworkExplorer } from 'types/networks';
import
config
from
'
configs/app
'
;
import
config
from
'
configs/app
'
;
import
stripTrailingSlash
from
'
lib/stripTrailingSlash
'
;
import
stripTrailingSlash
from
'
lib/stripTrailingSlash
'
;
import
Popover
from
'
ui/shared/chakra/Popover
'
;
import
IconSvg
from
'
ui/shared/IconSvg
'
;
import
IconSvg
from
'
ui/shared/IconSvg
'
;
import
LinkExternal
from
'
ui/shared/links/LinkExternal
'
;
import
LinkExternal
from
'
ui/shared/links/LinkExternal
'
;
import
PopoverTriggerTooltip
from
'
ui/shared/PopoverTriggerTooltip
'
;
import
PopoverTriggerTooltip
from
'
ui/shared/PopoverTriggerTooltip
'
;
...
...
ui/shared/Tabs/TabsMenu.tsx
View file @
c3675400
import
type
{
import
type
{
ButtonProps
}
from
'
@chakra-ui/react
'
;
ButtonProps
}
from
'
@chakra-ui/react
'
;
import
{
Popover
,
import
{
PopoverTrigger
,
PopoverTrigger
,
PopoverContent
,
PopoverContent
,
PopoverBody
,
PopoverBody
,
...
@@ -12,6 +12,8 @@ import React from 'react';
...
@@ -12,6 +12,8 @@ import React from 'react';
import
type
{
MenuButton
,
TabItem
}
from
'
./types
'
;
import
type
{
MenuButton
,
TabItem
}
from
'
./types
'
;
import
Popover
from
'
ui/shared/chakra/Popover
'
;
import
TabCounter
from
'
./TabCounter
'
;
import
TabCounter
from
'
./TabCounter
'
;
import
{
menuButton
}
from
'
./utils
'
;
import
{
menuButton
}
from
'
./utils
'
;
...
...
ui/shared/chakra/Popover.tsx
0 → 100644
View file @
c3675400
import
type
{
PopoverProps
}
from
'
@chakra-ui/react
'
;
// eslint-disable-next-line no-restricted-imports
import
{
Popover
as
PopoverBase
}
from
'
@chakra-ui/react
'
;
import
React
from
'
react
'
;
const
Popover
=
(
props
:
PopoverProps
)
=>
{
return
<
PopoverBase
gutter=
{
4
}
{
...
props
}
/>;
};
export
default
React
.
memo
(
Popover
);
ui/shared/entities/ens/EnsEntity.tsx
View file @
c3675400
import
{
Box
,
chakra
,
Flex
,
Image
,
Popover
,
Popover
Body
,
PopoverContent
,
PopoverTrigger
,
Portal
,
Skeleton
,
Text
}
from
'
@chakra-ui/react
'
;
import
{
Box
,
chakra
,
Flex
,
Image
,
PopoverBody
,
PopoverContent
,
PopoverTrigger
,
Portal
,
Skeleton
,
Text
}
from
'
@chakra-ui/react
'
;
import
_omit
from
'
lodash/omit
'
;
import
_omit
from
'
lodash/omit
'
;
import
React
from
'
react
'
;
import
React
from
'
react
'
;
...
@@ -6,6 +6,7 @@ import type * as bens from '@blockscout/bens-types';
...
@@ -6,6 +6,7 @@ import type * as bens from '@blockscout/bens-types';
import
{
route
}
from
'
nextjs-routes
'
;
import
{
route
}
from
'
nextjs-routes
'
;
import
Popover
from
'
ui/shared/chakra/Popover
'
;
import
*
as
EntityBase
from
'
ui/shared/entities/base/components
'
;
import
*
as
EntityBase
from
'
ui/shared/entities/base/components
'
;
import
IconSvg
from
'
ui/shared/IconSvg
'
;
import
IconSvg
from
'
ui/shared/IconSvg
'
;
import
LinkExternal
from
'
ui/shared/links/LinkExternal
'
;
import
LinkExternal
from
'
ui/shared/links/LinkExternal
'
;
...
...
ui/shared/filters/PopoverFilter.tsx
View file @
c3675400
import
type
{
PopoverContentProps
}
from
'
@chakra-ui/react
'
;
import
type
{
PopoverContentProps
}
from
'
@chakra-ui/react
'
;
import
{
import
{
Popover
,
PopoverTrigger
,
PopoverTrigger
,
PopoverContent
,
PopoverContent
,
PopoverBody
,
PopoverBody
,
...
@@ -8,6 +7,7 @@ import {
...
@@ -8,6 +7,7 @@ import {
}
from
'
@chakra-ui/react
'
;
}
from
'
@chakra-ui/react
'
;
import
React
from
'
react
'
;
import
React
from
'
react
'
;
import
Popover
from
'
ui/shared/chakra/Popover
'
;
import
FilterButton
from
'
ui/shared/filters/FilterButton
'
;
import
FilterButton
from
'
ui/shared/filters/FilterButton
'
;
interface
Props
{
interface
Props
{
...
...
ui/shared/filters/PopoverFilterRadio.tsx
View file @
c3675400
import
{
import
{
Popover
,
PopoverTrigger
,
PopoverTrigger
,
PopoverContent
,
PopoverContent
,
PopoverBody
,
PopoverBody
,
...
@@ -11,6 +10,7 @@ import {
...
@@ -11,6 +10,7 @@ import {
}
from
'
@chakra-ui/react
'
;
}
from
'
@chakra-ui/react
'
;
import
React
from
'
react
'
;
import
React
from
'
react
'
;
import
Popover
from
'
ui/shared/chakra/Popover
'
;
import
FilterButton
from
'
ui/shared/filters/FilterButton
'
;
import
FilterButton
from
'
ui/shared/filters/FilterButton
'
;
import
IconSvg
from
'
ui/shared/IconSvg
'
;
import
IconSvg
from
'
ui/shared/IconSvg
'
;
...
...
ui/shared/gas/GasInfoTooltip.tsx
View file @
c3675400
...
@@ -5,7 +5,6 @@ import {
...
@@ -5,7 +5,6 @@ import {
DarkMode
,
DarkMode
,
Flex
,
Flex
,
Grid
,
Grid
,
Popover
,
PopoverBody
,
PopoverBody
,
PopoverContent
,
PopoverContent
,
PopoverTrigger
,
PopoverTrigger
,
...
@@ -20,6 +19,7 @@ import { route } from 'nextjs-routes';
...
@@ -20,6 +19,7 @@ import { route } from 'nextjs-routes';
import
config
from
'
configs/app
'
;
import
config
from
'
configs/app
'
;
import
dayjs
from
'
lib/date/dayjs
'
;
import
dayjs
from
'
lib/date/dayjs
'
;
import
Popover
from
'
ui/shared/chakra/Popover
'
;
import
LinkInternal
from
'
ui/shared/links/LinkInternal
'
;
import
LinkInternal
from
'
ui/shared/links/LinkInternal
'
;
import
GasInfoTooltipRow
from
'
./GasInfoTooltipRow
'
;
import
GasInfoTooltipRow
from
'
./GasInfoTooltipRow
'
;
...
...
ui/shared/sort/Sort.tsx
View file @
c3675400
import
{
import
{
Popover
,
PopoverTrigger
,
PopoverTrigger
,
PopoverContent
,
PopoverContent
,
PopoverBody
,
PopoverBody
,
...
@@ -10,6 +9,7 @@ import {
...
@@ -10,6 +9,7 @@ import {
import
React
from
'
react
'
;
import
React
from
'
react
'
;
import
useIsMobile
from
'
lib/hooks/useIsMobile
'
;
import
useIsMobile
from
'
lib/hooks/useIsMobile
'
;
import
Popover
from
'
ui/shared/chakra/Popover
'
;
import
SortButtonDesktop
from
'
./ButtonDesktop
'
;
import
SortButtonDesktop
from
'
./ButtonDesktop
'
;
import
SortButtonMobile
from
'
./ButtonMobile
'
;
import
SortButtonMobile
from
'
./ButtonMobile
'
;
...
...
ui/snippets/footer/IntTxsIndexingStatus.tsx
View file @
c3675400
import
{
IconButton
,
Popover
,
Popover
Trigger
,
PopoverContent
,
PopoverBody
,
Flex
,
Text
,
useColorModeValue
}
from
'
@chakra-ui/react
'
;
import
{
IconButton
,
PopoverTrigger
,
PopoverContent
,
PopoverBody
,
Flex
,
Text
,
useColorModeValue
}
from
'
@chakra-ui/react
'
;
import
{
useQueryClient
}
from
'
@tanstack/react-query
'
;
import
{
useQueryClient
}
from
'
@tanstack/react-query
'
;
import
React
from
'
react
'
;
import
React
from
'
react
'
;
...
@@ -9,6 +9,7 @@ import useApiQuery, { getResourceKey } from 'lib/api/useApiQuery';
...
@@ -9,6 +9,7 @@ import useApiQuery, { getResourceKey } from 'lib/api/useApiQuery';
import
{
apos
,
nbsp
,
ndash
}
from
'
lib/html-entities
'
;
import
{
apos
,
nbsp
,
ndash
}
from
'
lib/html-entities
'
;
import
useSocketChannel
from
'
lib/socket/useSocketChannel
'
;
import
useSocketChannel
from
'
lib/socket/useSocketChannel
'
;
import
useSocketMessage
from
'
lib/socket/useSocketMessage
'
;
import
useSocketMessage
from
'
lib/socket/useSocketMessage
'
;
import
Popover
from
'
ui/shared/chakra/Popover
'
;
import
IconSvg
from
'
ui/shared/IconSvg
'
;
import
IconSvg
from
'
ui/shared/IconSvg
'
;
const
IntTxsIndexingStatus
=
()
=>
{
const
IntTxsIndexingStatus
=
()
=>
{
...
...
ui/snippets/navigation/horizontal/NavLinkGroup.tsx
View file @
c3675400
import
{
HStack
,
Popover
,
Popover
Body
,
PopoverContent
,
PopoverTrigger
,
chakra
,
StackDivider
}
from
'
@chakra-ui/react
'
;
import
{
HStack
,
PopoverBody
,
PopoverContent
,
PopoverTrigger
,
chakra
,
StackDivider
}
from
'
@chakra-ui/react
'
;
import
React
from
'
react
'
;
import
React
from
'
react
'
;
import
type
{
NavGroupItem
}
from
'
types/client/navigation
'
;
import
type
{
NavGroupItem
}
from
'
types/client/navigation
'
;
import
getDefaultTransitionProps
from
'
theme/utils/getDefaultTransitionProps
'
;
import
getDefaultTransitionProps
from
'
theme/utils/getDefaultTransitionProps
'
;
import
Popover
from
'
ui/shared/chakra/Popover
'
;
import
IconSvg
from
'
ui/shared/IconSvg
'
;
import
IconSvg
from
'
ui/shared/IconSvg
'
;
import
LightningLabel
from
'
../LightningLabel
'
;
import
LightningLabel
from
'
../LightningLabel
'
;
...
@@ -27,6 +28,7 @@ const NavLinkGroup = ({ item }: Props) => {
...
@@ -27,6 +28,7 @@ const NavLinkGroup = ({ item }: Props) => {
trigger=
"hover"
trigger=
"hover"
placement=
"bottom-start"
placement=
"bottom-start"
isLazy
isLazy
gutter=
{
8
}
>
>
{
({
isOpen
})
=>
(
{
({
isOpen
})
=>
(
<>
<>
...
...
ui/snippets/navigation/vertical/NavLinkGroup.tsx
View file @
c3675400
...
@@ -3,7 +3,6 @@ import {
...
@@ -3,7 +3,6 @@ import {
HStack
,
HStack
,
Box
,
Box
,
Link
,
Link
,
Popover
,
PopoverTrigger
,
PopoverTrigger
,
PopoverContent
,
PopoverContent
,
PopoverBody
,
PopoverBody
,
...
@@ -13,6 +12,7 @@ import React from 'react';
...
@@ -13,6 +12,7 @@ import React from 'react';
import
type
{
NavGroupItem
}
from
'
types/client/navigation
'
;
import
type
{
NavGroupItem
}
from
'
types/client/navigation
'
;
import
Popover
from
'
ui/shared/chakra/Popover
'
;
import
IconSvg
from
'
ui/shared/IconSvg
'
;
import
IconSvg
from
'
ui/shared/IconSvg
'
;
import
LightningLabel
from
'
../LightningLabel
'
;
import
LightningLabel
from
'
../LightningLabel
'
;
...
@@ -39,6 +39,7 @@ const NavLinkGroup = ({ item, isCollapsed }: Props) => {
...
@@ -39,6 +39,7 @@ const NavLinkGroup = ({ item, isCollapsed }: Props) => {
trigger=
"hover"
trigger=
"hover"
placement=
"right-start"
placement=
"right-start"
isLazy
isLazy
gutter=
{
8
}
>
>
<
PopoverTrigger
>
<
PopoverTrigger
>
<
Link
<
Link
...
...
ui/snippets/networkMenu/NetworkMenu.tsx
View file @
c3675400
import
{
Popover
,
Popover
Trigger
}
from
'
@chakra-ui/react
'
;
import
{
PopoverTrigger
}
from
'
@chakra-ui/react
'
;
import
React
from
'
react
'
;
import
React
from
'
react
'
;
import
Popover
from
'
ui/shared/chakra/Popover
'
;
import
NetworkMenuButton
from
'
./NetworkMenuButton
'
;
import
NetworkMenuButton
from
'
./NetworkMenuButton
'
;
import
NetworkMenuContentDesktop
from
'
./NetworkMenuContentDesktop
'
;
import
NetworkMenuContentDesktop
from
'
./NetworkMenuContentDesktop
'
;
import
useNetworkMenu
from
'
./useNetworkMenu
'
;
import
useNetworkMenu
from
'
./useNetworkMenu
'
;
...
@@ -13,7 +15,7 @@ const NetworkMenu = ({ isCollapsed }: Props) => {
...
@@ -13,7 +15,7 @@ const NetworkMenu = ({ isCollapsed }: Props) => {
const
menu
=
useNetworkMenu
();
const
menu
=
useNetworkMenu
();
return
(
return
(
<
Popover
openDelay=
{
300
}
placement=
"right-start"
gutter=
{
8
}
isLazy
isOpen=
{
menu
.
isOpen
}
onClose=
{
menu
.
onClose
}
>
<
Popover
openDelay=
{
300
}
placement=
"right-start"
isLazy
isOpen=
{
menu
.
isOpen
}
onClose=
{
menu
.
onClose
}
>
<
PopoverTrigger
>
<
PopoverTrigger
>
<
NetworkMenuButton
<
NetworkMenuButton
marginLeft=
"auto"
marginLeft=
"auto"
...
...
ui/snippets/profileMenu/ProfileMenuDesktop.tsx
View file @
c3675400
import
type
{
IconButtonProps
}
from
'
@chakra-ui/react
'
;
import
type
{
IconButtonProps
}
from
'
@chakra-ui/react
'
;
import
{
Popover
,
Popover
Content
,
PopoverBody
,
PopoverTrigger
,
IconButton
,
Tooltip
,
Box
,
chakra
}
from
'
@chakra-ui/react
'
;
import
{
PopoverContent
,
PopoverBody
,
PopoverTrigger
,
IconButton
,
Tooltip
,
Box
,
chakra
}
from
'
@chakra-ui/react
'
;
import
React
from
'
react
'
;
import
React
from
'
react
'
;
import
useFetchProfileInfo
from
'
lib/hooks/useFetchProfileInfo
'
;
import
useFetchProfileInfo
from
'
lib/hooks/useFetchProfileInfo
'
;
import
useLoginUrl
from
'
lib/hooks/useLoginUrl
'
;
import
useLoginUrl
from
'
lib/hooks/useLoginUrl
'
;
import
*
as
mixpanel
from
'
lib/mixpanel/index
'
;
import
*
as
mixpanel
from
'
lib/mixpanel/index
'
;
import
Popover
from
'
ui/shared/chakra/Popover
'
;
import
UserAvatar
from
'
ui/shared/UserAvatar
'
;
import
UserAvatar
from
'
ui/shared/UserAvatar
'
;
import
ProfileMenuContent
from
'
ui/snippets/profileMenu/ProfileMenuContent
'
;
import
ProfileMenuContent
from
'
ui/snippets/profileMenu/ProfileMenuContent
'
;
...
...
ui/snippets/searchBar/SearchBar.tsx
View file @
c3675400
import
{
import
{
Box
,
Box
,
Portal
,
Portal
,
Popover
,
PopoverTrigger
,
PopoverTrigger
,
PopoverContent
,
PopoverContent
,
PopoverBody
,
PopoverBody
,
...
@@ -20,6 +19,7 @@ import { route } from 'nextjs-routes';
...
@@ -20,6 +19,7 @@ import { route } from 'nextjs-routes';
import
useIsMobile
from
'
lib/hooks/useIsMobile
'
;
import
useIsMobile
from
'
lib/hooks/useIsMobile
'
;
import
*
as
mixpanel
from
'
lib/mixpanel/index
'
;
import
*
as
mixpanel
from
'
lib/mixpanel/index
'
;
import
{
getRecentSearchKeywords
,
saveToRecentKeywords
}
from
'
lib/recentSearchKeywords
'
;
import
{
getRecentSearchKeywords
,
saveToRecentKeywords
}
from
'
lib/recentSearchKeywords
'
;
import
Popover
from
'
ui/shared/chakra/Popover
'
;
import
LinkInternal
from
'
ui/shared/links/LinkInternal
'
;
import
LinkInternal
from
'
ui/shared/links/LinkInternal
'
;
import
SearchBarBackdrop
from
'
./SearchBarBackdrop
'
;
import
SearchBarBackdrop
from
'
./SearchBarBackdrop
'
;
...
@@ -123,7 +123,7 @@ const SearchBar = ({ isHomepage }: Props) => {
...
@@ -123,7 +123,7 @@ const SearchBar = ({ isHomepage }: Props) => {
autoFocus=
{
false
}
autoFocus=
{
false
}
onClose=
{
onClose
}
onClose=
{
onClose
}
placement=
"bottom-start"
placement=
"bottom-start"
offset=
{
isMobile
&&
!
isHomepage
?
[
12
,
-
4
]
:
undefined
}
offset=
{
isMobile
&&
!
isHomepage
?
[
12
,
-
4
]
:
[
0
,
8
]
}
isLazy
isLazy
>
>
<
PopoverTrigger
>
<
PopoverTrigger
>
...
...
ui/snippets/topBar/DeFiDropdown.tsx
View file @
c3675400
import
{
Button
,
Box
,
Flex
,
Popover
,
Popover
Trigger
,
PopoverContent
,
PopoverBody
,
useDisclosure
,
chakra
}
from
'
@chakra-ui/react
'
;
import
{
Button
,
Box
,
Flex
,
PopoverTrigger
,
PopoverContent
,
PopoverBody
,
useDisclosure
,
chakra
}
from
'
@chakra-ui/react
'
;
import
{
useRouter
}
from
'
next/router
'
;
import
{
useRouter
}
from
'
next/router
'
;
import
React
from
'
react
'
;
import
React
from
'
react
'
;
...
@@ -7,6 +7,7 @@ import { route } from 'nextjs-routes';
...
@@ -7,6 +7,7 @@ import { route } from 'nextjs-routes';
import
config
from
'
configs/app
'
;
import
config
from
'
configs/app
'
;
import
getPageType
from
'
lib/mixpanel/getPageType
'
;
import
getPageType
from
'
lib/mixpanel/getPageType
'
;
import
*
as
mixpanel
from
'
lib/mixpanel/index
'
;
import
*
as
mixpanel
from
'
lib/mixpanel/index
'
;
import
Popover
from
'
ui/shared/chakra/Popover
'
;
import
IconSvg
from
'
ui/shared/IconSvg
'
;
import
IconSvg
from
'
ui/shared/IconSvg
'
;
import
DeFiDropdownItem
from
'
./DeFiDropdownItem
'
;
import
DeFiDropdownItem
from
'
./DeFiDropdownItem
'
;
...
...
ui/snippets/topBar/NetworkMenu.tsx
View file @
c3675400
import
{
IconButton
,
Popover
,
Popover
Trigger
}
from
'
@chakra-ui/react
'
;
import
{
IconButton
,
PopoverTrigger
}
from
'
@chakra-ui/react
'
;
import
React
from
'
react
'
;
import
React
from
'
react
'
;
import
Popover
from
'
ui/shared/chakra/Popover
'
;
import
IconSvg
from
'
ui/shared/IconSvg
'
;
import
IconSvg
from
'
ui/shared/IconSvg
'
;
import
NetworkMenuContentDesktop
from
'
ui/snippets/networkMenu/NetworkMenuContentDesktop
'
;
import
NetworkMenuContentDesktop
from
'
ui/snippets/networkMenu/NetworkMenuContentDesktop
'
;
import
useNetworkMenu
from
'
ui/snippets/networkMenu/useNetworkMenu
'
;
import
useNetworkMenu
from
'
ui/snippets/networkMenu/useNetworkMenu
'
;
...
...
ui/snippets/topBar/settings/Settings.tsx
View file @
c3675400
import
{
Box
,
IconButton
,
Popover
,
Popover
Body
,
PopoverContent
,
PopoverTrigger
,
useDisclosure
}
from
'
@chakra-ui/react
'
;
import
{
Box
,
IconButton
,
PopoverBody
,
PopoverContent
,
PopoverTrigger
,
useDisclosure
}
from
'
@chakra-ui/react
'
;
import
React
from
'
react
'
;
import
React
from
'
react
'
;
import
Popover
from
'
ui/shared/chakra/Popover
'
;
import
IconSvg
from
'
ui/shared/IconSvg
'
;
import
IconSvg
from
'
ui/shared/IconSvg
'
;
import
SettingsColorTheme
from
'
./SettingsColorTheme
'
;
import
SettingsColorTheme
from
'
./SettingsColorTheme
'
;
...
...
ui/snippets/walletMenu/WalletMenuDesktop.tsx
View file @
c3675400
import
type
{
ButtonProps
}
from
'
@chakra-ui/react
'
;
import
type
{
ButtonProps
}
from
'
@chakra-ui/react
'
;
import
{
Popover
,
Popover
Content
,
PopoverBody
,
PopoverTrigger
,
Button
,
Box
,
useBoolean
,
chakra
,
useColorModeValue
}
from
'
@chakra-ui/react
'
;
import
{
PopoverContent
,
PopoverBody
,
PopoverTrigger
,
Button
,
Box
,
useBoolean
,
chakra
,
useColorModeValue
}
from
'
@chakra-ui/react
'
;
import
React
from
'
react
'
;
import
React
from
'
react
'
;
import
{
useMarketplaceContext
}
from
'
lib/contexts/marketplace
'
;
import
{
useMarketplaceContext
}
from
'
lib/contexts/marketplace
'
;
import
useIsMobile
from
'
lib/hooks/useIsMobile
'
;
import
useIsMobile
from
'
lib/hooks/useIsMobile
'
;
import
*
as
mixpanel
from
'
lib/mixpanel/index
'
;
import
*
as
mixpanel
from
'
lib/mixpanel/index
'
;
import
Popover
from
'
ui/shared/chakra/Popover
'
;
import
HashStringShorten
from
'
ui/shared/HashStringShorten
'
;
import
HashStringShorten
from
'
ui/shared/HashStringShorten
'
;
import
useWallet
from
'
ui/snippets/walletMenu/useWallet
'
;
import
useWallet
from
'
ui/snippets/walletMenu/useWallet
'
;
import
WalletMenuContent
from
'
ui/snippets/walletMenu/WalletMenuContent
'
;
import
WalletMenuContent
from
'
ui/snippets/walletMenu/WalletMenuContent
'
;
...
@@ -65,7 +66,6 @@ const WalletMenuDesktop = ({ isHomePage, className, size = 'md' }: Props) => {
...
@@ -65,7 +66,6 @@ const WalletMenuDesktop = ({ isHomePage, className, size = 'md' }: Props) => {
<
Popover
<
Popover
openDelay=
{
300
}
openDelay=
{
300
}
placement=
"bottom-end"
placement=
"bottom-end"
gutter=
{
10
}
isLazy
isLazy
isOpen=
{
isPopoverOpen
}
isOpen=
{
isPopoverOpen
}
onClose=
{
setIsPopoverOpen
.
off
}
onClose=
{
setIsPopoverOpen
.
off
}
...
...
ui/token/TokenProjectInfo.tsx
View file @
c3675400
import
{
import
{
Popover
,
Popover
Trigger
,
PopoverContent
,
PopoverBody
,
PopoverTrigger
,
PopoverContent
,
PopoverBody
,
Modal
,
ModalContent
,
ModalCloseButton
,
Modal
,
ModalContent
,
ModalCloseButton
,
useDisclosure
,
useDisclosure
,
}
from
'
@chakra-ui/react
'
;
}
from
'
@chakra-ui/react
'
;
...
@@ -8,6 +8,7 @@ import React from 'react';
...
@@ -8,6 +8,7 @@ import React from 'react';
import
type
{
TokenVerifiedInfo
}
from
'
types/api/token
'
;
import
type
{
TokenVerifiedInfo
}
from
'
types/api/token
'
;
import
useIsMobile
from
'
lib/hooks/useIsMobile
'
;
import
useIsMobile
from
'
lib/hooks/useIsMobile
'
;
import
Popover
from
'
ui/shared/chakra/Popover
'
;
import
Content
,
{
hasContent
}
from
'
./TokenProjectInfo/Content
'
;
import
Content
,
{
hasContent
}
from
'
./TokenProjectInfo/Content
'
;
import
TriggerButton
from
'
./TokenProjectInfo/TriggerButton
'
;
import
TriggerButton
from
'
./TokenProjectInfo/TriggerButton
'
;
...
...
ui/tx/assetFlows/components/NovesActionSnippet.tsx
View file @
c3675400
import
{
Box
,
Hide
,
Popover
,
Popover
Arrow
,
PopoverContent
,
PopoverTrigger
,
Show
,
Skeleton
,
Text
,
useColorModeValue
}
from
'
@chakra-ui/react
'
;
import
{
Box
,
Hide
,
PopoverArrow
,
PopoverContent
,
PopoverTrigger
,
Show
,
Skeleton
,
Text
,
useColorModeValue
}
from
'
@chakra-ui/react
'
;
import
type
{
FC
}
from
'
react
'
;
import
type
{
FC
}
from
'
react
'
;
import
React
from
'
react
'
;
import
React
from
'
react
'
;
import
{
HEX_REGEXP
}
from
'
lib/regexp
'
;
import
{
HEX_REGEXP
}
from
'
lib/regexp
'
;
import
Popover
from
'
ui/shared/chakra/Popover
'
;
import
TokenEntity
from
'
ui/shared/entities/token/TokenEntity
'
;
import
TokenEntity
from
'
ui/shared/entities/token/TokenEntity
'
;
import
IconSvg
from
'
ui/shared/IconSvg
'
;
import
IconSvg
from
'
ui/shared/IconSvg
'
;
...
...
ui/txs/TxAdditionalInfo.tsx
View file @
c3675400
...
@@ -3,7 +3,6 @@ import {
...
@@ -3,7 +3,6 @@ import {
Modal
,
Modal
,
ModalContent
,
ModalContent
,
ModalCloseButton
,
ModalCloseButton
,
Popover
,
PopoverTrigger
,
PopoverTrigger
,
PopoverContent
,
PopoverContent
,
PopoverBody
,
PopoverBody
,
...
@@ -14,6 +13,7 @@ import React from 'react';
...
@@ -14,6 +13,7 @@ import React from 'react';
import
type
{
Transaction
}
from
'
types/api/transaction
'
;
import
type
{
Transaction
}
from
'
types/api/transaction
'
;
import
AdditionalInfoButton
from
'
ui/shared/AdditionalInfoButton
'
;
import
AdditionalInfoButton
from
'
ui/shared/AdditionalInfoButton
'
;
import
Popover
from
'
ui/shared/chakra/Popover
'
;
import
TxAdditionalInfoContainer
from
'
./TxAdditionalInfoContainer
'
;
import
TxAdditionalInfoContainer
from
'
./TxAdditionalInfoContainer
'
;
import
TxAdditionalInfoContent
from
'
./TxAdditionalInfoContent
'
;
import
TxAdditionalInfoContent
from
'
./TxAdditionalInfoContent
'
;
...
...
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