Commit abb849b8 authored by isstuev's avatar isstuev

marketplace layout fix

parent 1fae6db7
import type { GetServerSideProps, NextPage } from 'next'; import type { GetServerSideProps, NextPage } from 'next';
import dynamic from 'next/dynamic';
import React from 'react'; import React from 'react';
import type { Route } from 'nextjs-routes'; import type { Route } from 'nextjs-routes';
......
...@@ -21,7 +21,6 @@ import type { IconName } from 'ui/shared/IconSvg'; ...@@ -21,7 +21,6 @@ import type { IconName } from 'ui/shared/IconSvg';
import LinkExternal from 'ui/shared/LinkExternal'; import LinkExternal from 'ui/shared/LinkExternal';
import PageTitle from 'ui/shared/Page/PageTitle'; import PageTitle from 'ui/shared/Page/PageTitle';
import RadioButtonGroup from 'ui/shared/radioButtonGroup/RadioButtonGroup'; import RadioButtonGroup from 'ui/shared/radioButtonGroup/RadioButtonGroup';
import TabsSkeleton from 'ui/shared/Tabs/TabsSkeleton';
import TabsWithScroll from 'ui/shared/Tabs/TabsWithScroll'; import TabsWithScroll from 'ui/shared/Tabs/TabsWithScroll';
import useMarketplace from '../marketplace/useMarketplace'; import useMarketplace from '../marketplace/useMarketplace';
...@@ -93,7 +92,7 @@ const Marketplace = () => { ...@@ -93,7 +92,7 @@ const Marketplace = () => {
tabs.unshift({ tabs.unshift({
id: MarketplaceCategory.FAVORITES, id: MarketplaceCategory.FAVORITES,
title: () => <IconSvg name="star_outline" w={ 5 } h={ 5 }/>, title: () => <IconSvg name="star_outline" w={ 5 } h={ 5 } display="flex"/>,
count: null, count: null,
component: null, component: null,
}); });
...@@ -179,16 +178,13 @@ const Marketplace = () => { ...@@ -179,16 +178,13 @@ const Marketplace = () => {
/> />
<Box marginTop={{ base: 0, lg: 8 }}> <Box marginTop={{ base: 0, lg: 8 }}>
{ (isCategoriesPlaceholderData) ? ( <TabsWithScroll
<TabsSkeleton tabs={ categoryTabs }/> tabs={ categoryTabs }
) : ( onTabChange={ handleCategoryChange }
<TabsWithScroll defaultTabIndex={ selectedCategoryIndex }
tabs={ categoryTabs } marginBottom={ -2 }
onTabChange={ handleCategoryChange } isLoading={ isCategoriesPlaceholderData }
defaultTabIndex={ selectedCategoryIndex } />
marginBottom={ -2 }
/>
) }
</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 }}>
......
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