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
0052c025
Commit
0052c025
authored
Mar 25, 2024
by
Max Alekseenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
post-review changes
parent
821182eb
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
16 deletions
+7
-16
ContractListButton.tsx
ui/marketplace/ContractListButton.tsx
+2
-3
MarketplaceAppModal.tsx
ui/marketplace/MarketplaceAppModal.tsx
+3
-3
ListItem.tsx
ui/marketplace/MarketplaceListWithScores/ListItem.tsx
+2
-10
No files found.
ui/marketplace/ContractListButton.tsx
View file @
0052c025
...
@@ -3,7 +3,6 @@ import React from 'react';
...
@@ -3,7 +3,6 @@ import React from 'react';
import
type
{
MouseEvent
}
from
'
react
'
;
import
type
{
MouseEvent
}
from
'
react
'
;
import
config
from
'
configs/app
'
;
import
config
from
'
configs/app
'
;
import
type
{
IconName
}
from
'
ui/shared/IconSvg
'
;
import
IconSvg
from
'
ui/shared/IconSvg
'
;
import
IconSvg
from
'
ui/shared/IconSvg
'
;
export
enum
ContractListButtonVariants
{
export
enum
ContractListButtonVariants
{
...
@@ -13,12 +12,12 @@ export enum ContractListButtonVariants {
...
@@ -13,12 +12,12 @@ export enum ContractListButtonVariants {
const
values
=
{
const
values
=
{
[
ContractListButtonVariants
.
ALL_CONTRACTS
]:
{
[
ContractListButtonVariants
.
ALL_CONTRACTS
]:
{
icon
:
'
contracts
'
as
IconName
,
icon
:
'
contracts
'
as
const
,
iconColor
:
'
gray.500
'
,
iconColor
:
'
gray.500
'
,
tooltip
:
`Total number of contracts deployed by the protocol on
${
config
.
chain
.
name
}
`
,
tooltip
:
`Total number of contracts deployed by the protocol on
${
config
.
chain
.
name
}
`
,
},
},
[
ContractListButtonVariants
.
VERIFIED_CONTRACTS
]:
{
[
ContractListButtonVariants
.
VERIFIED_CONTRACTS
]:
{
icon
:
'
contracts_verified
'
as
IconName
,
icon
:
'
contracts_verified
'
as
const
,
iconColor
:
'
green.500
'
,
iconColor
:
'
green.500
'
,
tooltip
:
`Number of verified contracts on
${
config
.
chain
.
name
}
`
,
tooltip
:
`Number of verified contracts on
${
config
.
chain
.
name
}
`
,
},
},
...
...
ui/marketplace/MarketplaceAppModal.tsx
View file @
0052c025
...
@@ -31,7 +31,7 @@ const MarketplaceAppModal = ({
...
@@ -31,7 +31,7 @@ const MarketplaceAppModal = ({
isFavorite
,
isFavorite
,
onFavoriteClick
,
onFavoriteClick
,
data
,
data
,
showContractList
:
showContractList
Default
,
showContractList
:
showContractList
Prop
,
}:
Props
)
=>
{
}:
Props
)
=>
{
const
{
value
:
isExperiment
}
=
useFeatureValue
(
'
security_score_exp
'
,
false
);
const
{
value
:
isExperiment
}
=
useFeatureValue
(
'
security_score_exp
'
,
false
);
const
starOutlineIconColor
=
useColorModeValue
(
'
gray.600
'
,
'
gray.300
'
);
const
starOutlineIconColor
=
useColorModeValue
(
'
gray.600
'
,
'
gray.300
'
);
...
@@ -78,8 +78,8 @@ const MarketplaceAppModal = ({
...
@@ -78,8 +78,8 @@ const MarketplaceAppModal = ({
const
showContractList
=
useCallback
((
type
:
ContractListTypes
)
=>
{
const
showContractList
=
useCallback
((
type
:
ContractListTypes
)
=>
{
onClose
();
onClose
();
showContractList
Default
(
id
,
type
);
showContractList
Prop
(
id
,
type
);
},
[
onClose
,
showContractList
Default
,
id
]);
},
[
onClose
,
showContractList
Prop
,
id
]);
const
showAllContracts
=
React
.
useCallback
(()
=>
{
const
showAllContracts
=
React
.
useCallback
(()
=>
{
mixpanel
.
logEvent
(
mixpanel
.
EventTypes
.
PAGE_WIDGET
,
{
Type
:
'
Total contracts
'
,
Info
:
id
,
Source
:
'
App modal
'
});
mixpanel
.
logEvent
(
mixpanel
.
EventTypes
.
PAGE_WIDGET
,
{
Type
:
'
Total contracts
'
,
Info
:
id
,
Source
:
'
App modal
'
});
...
...
ui/marketplace/MarketplaceListWithScores/ListItem.tsx
View file @
0052c025
...
@@ -55,16 +55,8 @@ const ListItem = ({ app, onInfoClick, isFavorite, onFavoriteClick, isLoading, on
...
@@ -55,16 +55,8 @@ const ListItem = ({ app, onInfoClick, isFavorite, onFavoriteClick, isLoading, on
<
ListItemMobile
<
ListItemMobile
rowGap=
{
3
}
rowGap=
{
3
}
py=
{
3
}
py=
{
3
}
sx=
{
{
_first=
{
{
borderTop
:
'
none
'
,
paddingTop
:
0
}
}
'
:first-of-type
'
:
{
_last=
{
{
borderBottom
:
'
none
'
,
paddingBottom
:
0
}
}
borderTop
:
'
none
'
,
paddingTop
:
0
,
},
'
:last-of-type
'
:
{
borderBottom
:
'
none
'
,
paddingBottom
:
0
,
},
}
}
>
>
<
Flex
<
Flex
direction=
"column"
direction=
"column"
...
...
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