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

hide new features

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