Commit 68388c92 authored by Max Alekseenko's avatar Max Alekseenko Committed by GitHub

Merge pull request #1867 from blockscout/update-styles-of-no-result

Update styles of "no result" component
parents 813d9949 0694b5cb
This diff is collapsed.
......@@ -20,7 +20,7 @@ const EmptySearchResult = ({ favoriteApps, selectedCategoryId }: Props) => (
text={
(selectedCategoryId === MarketplaceCategory.FAVORITES && !favoriteApps.length) ? (
<>
You don{ apos }t have any favorite apps.
You don{ apos }t have any favorite apps.<br/>
Click on the <IconSvg name="star_outline" w={ 4 } h={ 4 } mb={ -0.5 }/> icon on the app{ apos }s card to add it to Favorites.
</>
) : (
......@@ -28,7 +28,7 @@ const EmptySearchResult = ({ favoriteApps, selectedCategoryId }: Props) => (
No matching apps found.
{ 'suggestIdeasFormUrl' in feature && (
<>
{ ' ' }Have a groundbreaking idea or app suggestion?{ ' ' }
{ ' ' }Have a groundbreaking idea or app suggestion?<br/>
<LinkExternal href={ feature.suggestIdeasFormUrl }>Share it with us</LinkExternal>
</>
) }
......
......@@ -16,23 +16,21 @@ const EmptySearchResult = ({ text }: Props) => {
display="flex"
flexDirection="column"
alignItems="center"
justifyContent="center"
mt="50px"
>
<Icon as={ emptySearchResultIcon } boxSize={ 60 }/>
<Icon
as={ emptySearchResultIcon }
w={{ base: '160px', sm: '240px' }}
h="auto"
mb={{ base: 4, sm: 6 }}
/>
<Heading
as="h3"
marginBottom={ 2 }
fontSize={{ base: '2xl', sm: '3xl' }}
fontWeight="semibold"
>
<Heading as="h4" size="sm" mb={ 2 }>
No results
</Heading>
<Text
fontSize={{ base: 'sm' }}
variant="secondary"
align="center"
>
<Text fontSize={{ base: 'sm', sm: 'md' }} align="center">
{ text }
</Text>
</Box>
......
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