Commit 6aee84d2 authored by Max Alekseenko's avatar Max Alekseenko

hide new features

parent e27f4e25
...@@ -173,7 +173,7 @@ const Marketplace = () => { ...@@ -173,7 +173,7 @@ const Marketplace = () => {
</Box> </Box>
<Flex direction={{ base: 'column', lg: 'row' }} mb={{ base: 4, lg: 6 }} gap={{ base: 4, lg: 3 }}> <Flex direction={{ base: 'column', lg: 'row' }} mb={{ base: 4, lg: 6 }} gap={{ base: 4, lg: 3 }}>
{ isExperiment && ( { (feature.securityReportsUrl && isExperiment) && (
<Skeleton isLoaded={ !isPlaceholderData }> <Skeleton isLoaded={ !isPlaceholderData }>
<RadioButtonGroup<MarketplaceDisplayType> <RadioButtonGroup<MarketplaceDisplayType>
onChange={ onDisplayTypeChange } onChange={ onDisplayTypeChange }
...@@ -210,12 +210,12 @@ const Marketplace = () => { ...@@ -210,12 +210,12 @@ const Marketplace = () => {
onChange={ onSearchInputChange } onChange={ onSearchInputChange }
placeholder="Find app by name or keyword..." placeholder="Find app by name or keyword..."
isLoading={ isPlaceholderData } isLoading={ isPlaceholderData }
size={ isExperiment ? 'xs' : 'sm' } size={ (feature.securityReportsUrl && isExperiment) ? 'xs' : 'sm' }
flex="1" flex="1"
/> />
</Flex> </Flex>
{ (selectedDisplayType === MarketplaceDisplayType.SCORES && isExperiment) ? ( { (selectedDisplayType === MarketplaceDisplayType.SCORES && feature.securityReportsUrl && isExperiment) ? (
<MarketplaceListWithScores <MarketplaceListWithScores
apps={ displayedApps } apps={ displayedApps }
showAppInfo={ showAppInfo } showAppInfo={ showAppInfo }
......
...@@ -105,7 +105,7 @@ const MarketplaceApp = () => { ...@@ -105,7 +105,7 @@ const MarketplaceApp = () => {
const { address, sendTransaction, signMessage, signTypedData } = useMarketplaceWallet(id); const { address, sendTransaction, signMessage, signTypedData } = useMarketplaceWallet(id);
useAutoConnectWallet(); useAutoConnectWallet();
const { data: securityReports, isPending: isSecurityReportsPending } = useSecurityReports(); const { data: securityReports, isLoading: isSecurityReportsLoading } = useSecurityReports();
const query = useQuery<unknown, ResourceError<unknown>, MarketplaceAppOverview>({ const query = useQuery<unknown, ResourceError<unknown>, MarketplaceAppOverview>({
queryKey: [ 'marketplace-dapps', id ], queryKey: [ 'marketplace-dapps', id ],
...@@ -145,7 +145,7 @@ const MarketplaceApp = () => { ...@@ -145,7 +145,7 @@ const MarketplaceApp = () => {
<> <>
<MarketplaceAppTopBar <MarketplaceAppTopBar
data={ data } data={ data }
isLoading={ isPending || isSecurityReportsPending } isLoading={ isPending || isSecurityReportsLoading }
isWalletConnected={ Boolean(address) } isWalletConnected={ Boolean(address) }
securityReport={ securityReports?.[id] } securityReport={ securityReports?.[id] }
/> />
......
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