Hook up my My subscriptions section to tabs

This commit is contained in:
Dan Q 2023-09-21 15:00:22 +01:00 committed by raicem
parent 74f7af7f1a
commit 514fd937ee
2 changed files with 4 additions and 8 deletions

View File

@ -16,6 +16,7 @@ import Discover from '../discover/discover';
import Extensions from '../extensions/extensions';
import SearchResults from '../search-results/search-results';
import Themes from '../themes/themes';
import MySubscriptions from '../my-subscriptions/my-subscriptions';
import { MarketplaceContext } from '../../contexts/marketplace-context';
export default function Content(): JSX.Element {
@ -108,6 +109,8 @@ export default function Content(): JSX.Element {
return <SearchResults products={ products } />;
case 'discover':
return <Discover />;
case 'my-subscriptions':
return <MySubscriptions />;
default:
return <></>;
}

View File

@ -48,14 +48,7 @@ const tabs: Tabs = {
},
'my-subscriptions': {
name: 'my-subscriptions',
title: __( 'My Subscriptions', 'woocommerce' ),
href: getNewPath(
{
page: 'wc-addons',
section: 'helper',
},
''
),
title: __( 'My subscriptions', 'woocommerce' ),
},
};