feat: marketplace list
This commit is contained in:
parent
9a65c3391b
commit
1e0877dcbf
@ -5,7 +5,7 @@ import ListWithCollection from './list-with-collection'
|
|||||||
import Card from '@/app/components/plugins/card'
|
import Card from '@/app/components/plugins/card'
|
||||||
import CardMoreInfo from '@/app/components/plugins/card/card-more-info'
|
import CardMoreInfo from '@/app/components/plugins/card/card-more-info'
|
||||||
|
|
||||||
interface ListProps {
|
type ListProps = {
|
||||||
marketplaceCollections: MarketplaceCollection[]
|
marketplaceCollections: MarketplaceCollection[]
|
||||||
marketplaceCollectionPluginsMap: Record<string, Plugin[]>
|
marketplaceCollectionPluginsMap: Record<string, Plugin[]>
|
||||||
plugins?: Plugin[]
|
plugins?: Plugin[]
|
||||||
@ -16,7 +16,7 @@ const List = ({
|
|||||||
plugins,
|
plugins,
|
||||||
}: ListProps) => {
|
}: ListProps) => {
|
||||||
return (
|
return (
|
||||||
<div className='px-12 py-2 bg-background-default-subtle'>
|
<>
|
||||||
{
|
{
|
||||||
!plugins && (
|
!plugins && (
|
||||||
<ListWithCollection
|
<ListWithCollection
|
||||||
@ -45,7 +45,7 @@ const List = ({
|
|||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
</div>
|
</>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -15,11 +15,13 @@ const ListWrapper = ({
|
|||||||
const plugins = useMarketplaceContext(s => s.plugins)
|
const plugins = useMarketplaceContext(s => s.plugins)
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<List
|
<div className='px-12 py-2 bg-background-default-subtle'>
|
||||||
marketplaceCollections={marketplaceCollections}
|
<List
|
||||||
marketplaceCollectionPluginsMap={marketplaceCollectionPluginsMap}
|
marketplaceCollections={marketplaceCollections}
|
||||||
plugins={plugins}
|
marketplaceCollectionPluginsMap={marketplaceCollectionPluginsMap}
|
||||||
/>
|
plugins={plugins}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user