Commit 0052c025 authored by Max Alekseenko's avatar Max Alekseenko

post-review changes

parent 821182eb
...@@ -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 }`,
}, },
......
...@@ -31,7 +31,7 @@ const MarketplaceAppModal = ({ ...@@ -31,7 +31,7 @@ const MarketplaceAppModal = ({
isFavorite, isFavorite,
onFavoriteClick, onFavoriteClick,
data, data,
showContractList: showContractListDefault, showContractList: showContractListProp,
}: 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();
showContractListDefault(id, type); showContractListProp(id, type);
}, [ onClose, showContractListDefault, id ]); }, [ onClose, showContractListProp, 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' });
......
...@@ -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"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment