Commit de7de01a authored by isstuev's avatar isstuev

fix

parent 621dc684
...@@ -73,7 +73,7 @@ const SearchResultsPageContent = () => { ...@@ -73,7 +73,7 @@ const SearchResultsPageContent = () => {
return ( return (
<> <>
<Show below="lg" ssr={ false }> <Show below="lg" ssr={ false }>
{ marketplaceApps.displayedApps.map((item, index) => ( { pagination.page === 1 && marketplaceApps.displayedApps.map((item, index) => (
<SearchResultListItem <SearchResultListItem
key={ 'actual_' + index } key={ 'actual_' + index }
data={{ type: 'app', app: item }} data={{ type: 'app', app: item }}
...@@ -100,7 +100,7 @@ const SearchResultsPageContent = () => { ...@@ -100,7 +100,7 @@ const SearchResultsPageContent = () => {
</Tr> </Tr>
</Thead> </Thead>
<Tbody> <Tbody>
{ marketplaceApps.displayedApps.map((item, index) => ( { pagination.page === 1 && marketplaceApps.displayedApps.map((item, index) => (
<SearchResultTableItem <SearchResultTableItem
key={ 'actual_' + index } key={ 'actual_' + index }
data={{ type: 'app', app: item }} data={{ type: 'app', app: item }}
...@@ -138,7 +138,7 @@ const SearchResultsPageContent = () => { ...@@ -138,7 +138,7 @@ const SearchResultsPageContent = () => {
<chakra.span fontWeight={ 700 }> <chakra.span fontWeight={ 700 }>
{ resultsCount } { resultsCount }
</chakra.span> </chakra.span>
<span> matching result{ (data?.items && data.items.length > 1) || pagination.page > 1 ? 's' : '' } for </span> <span> matching result{ (((data?.items.length || 0) + marketplaceApps.displayedApps.length) > 1) || pagination.page > 1 ? 's' : '' } for </span>
<chakra.span fontWeight={ 700 }>{ debouncedSearchTerm }</chakra.span> <chakra.span fontWeight={ 700 }>{ debouncedSearchTerm }</chakra.span>
</Box> </Box>
) )
......
...@@ -27,8 +27,6 @@ const SearchBarSuggestApp = ({ data, isMobile, searchTerm, onClick }: Props) => ...@@ -27,8 +27,6 @@ const SearchBarSuggestApp = ({ data, isMobile, searchTerm, onClick }: Props) =>
/> />
); );
const secondaryColor = useColorModeValue('gray.500', 'gray.400');
const content = (() => { const content = (() => {
if (isMobile) { if (isMobile) {
return ( return (
...@@ -83,7 +81,7 @@ const SearchBarSuggestApp = ({ data, isMobile, searchTerm, onClick }: Props) => ...@@ -83,7 +81,7 @@ const SearchBarSuggestApp = ({ data, isMobile, searchTerm, onClick }: Props) =>
> >
{ data.description } { data.description }
</Text> </Text>
{ data.external && <Icon as={ arrowIcon } boxSize={ 4 } verticalAlign="middle" color={ secondaryColor }/> } { data.external && <Icon as={ arrowIcon } boxSize={ 4 } verticalAlign="middle" color="text_secondary"/> }
</Flex> </Flex>
); );
})(); })();
......
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