mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-07-08 20:51:49 +08:00
chore: change downloadCount to optional
This commit is contained in:
parent
31ece363c3
commit
aa61a890b2
@ -1,7 +1,7 @@
|
|||||||
import DownloadCount from './base/download-count'
|
import DownloadCount from './base/download-count'
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
downloadCount: number
|
downloadCount?: number
|
||||||
tags: string[]
|
tags: string[]
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -11,10 +11,10 @@ const CardMoreInfo = ({
|
|||||||
}: Props) => {
|
}: Props) => {
|
||||||
return (
|
return (
|
||||||
<div className="flex items-center h-5">
|
<div className="flex items-center h-5">
|
||||||
<DownloadCount downloadCount={downloadCount} />
|
{downloadCount !== undefined && <DownloadCount downloadCount={downloadCount} />}
|
||||||
|
{downloadCount !== undefined && tags && tags.length > 0 && <div className="mx-2 text-text-quaternary system-xs-regular">·</div>}
|
||||||
{tags && tags.length > 0 && (
|
{tags && tags.length > 0 && (
|
||||||
<>
|
<>
|
||||||
<div className="mx-2 text-text-quaternary system-xs-regular">·</div>
|
|
||||||
<div className="flex space-x-2">
|
<div className="flex space-x-2">
|
||||||
{tags.map(tag => (
|
{tags.map(tag => (
|
||||||
<div key={tag} className="flex space-x-1 system-xs-regular">
|
<div key={tag} className="flex space-x-1 system-xs-regular">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user