mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 11:42:29 +08:00
revert: revert category label handling in plugin card component
This commit is contained in:
parent
fa6858090b
commit
2fbc0c2261
|
@ -11,7 +11,6 @@ import Placeholder from './base/placeholder'
|
|||
import cn from '@/utils/classnames'
|
||||
import { useGetLanguage } from '@/context/i18n'
|
||||
import { getLanguage } from '@/i18n/language'
|
||||
import { useCategories } from '../hooks'
|
||||
|
||||
export type Props = {
|
||||
className?: string
|
||||
|
@ -42,7 +41,6 @@ const Card = ({
|
|||
}: Props) => {
|
||||
const defaultLocale = useGetLanguage()
|
||||
const locale = localeFromProps ? getLanguage(localeFromProps) : defaultLocale
|
||||
const { categoriesMap } = useCategories()
|
||||
|
||||
const { type, name, org, label, brief, icon, verified } = payload
|
||||
|
||||
|
@ -61,7 +59,7 @@ const Card = ({
|
|||
|
||||
return (
|
||||
<div className={wrapClassName}>
|
||||
{!hideCornerMark && <CornerMark text={categoriesMap[type].label} />}
|
||||
{!hideCornerMark && <CornerMark text={type} />}
|
||||
{/* Header */}
|
||||
<div className="flex">
|
||||
<Icon src={icon} installed={installed} installFailed={installFailed} />
|
||||
|
|
Loading…
Reference in New Issue
Block a user