fix: enable_marketplace

This commit is contained in:
StyleZhang 2024-10-25 10:41:05 +08:00
parent 9a9d90ad7f
commit 0ef35a0ee0
2 changed files with 3 additions and 3 deletions

View File

@ -100,7 +100,7 @@ const PluginPage = ({
return [ return [
{ value: 'plugins', text: t('common.menus.plugins') }, { value: 'plugins', text: t('common.menus.plugins') },
...( ...(
!enable_marketplace enable_marketplace
? [{ value: 'discover', text: 'Explore Marketplace' }] ? [{ value: 'discover', text: 'Explore Marketplace' }]
: [] : []
), ),
@ -214,7 +214,7 @@ const PluginPage = ({
</> </>
)} )}
{ {
activeTab === 'discover' && !enable_marketplace && marketplace activeTab === 'discover' && enable_marketplace && marketplace
} }
{showPluginSettingModal && ( {showPluginSettingModal && (

View File

@ -118,7 +118,7 @@ const ProviderList = () => {
{!filteredCollectionList.length && <div className='absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2'><Empty /></div>} {!filteredCollectionList.length && <div className='absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2'><Empty /></div>}
</div> </div>
{ {
!enable_marketplace && ( enable_marketplace && (
<Marketplace onMarketplaceScroll={() => { <Marketplace onMarketplaceScroll={() => {
containerRef.current?.scrollTo({ top: containerRef.current.scrollHeight, behavior: 'smooth' }) containerRef.current?.scrollTo({ top: containerRef.current.scrollHeight, behavior: 'smooth' })
}} /> }} />