Revert "Feat/parent child retrieval" (#12095)
This commit is contained in:
@@ -4,7 +4,6 @@ import {
|
||||
DocumentProcessingPriority,
|
||||
Plan,
|
||||
} from '../type'
|
||||
import cn from '@/utils/classnames'
|
||||
import { useProviderContext } from '@/context/provider-context'
|
||||
import {
|
||||
ZapFast,
|
||||
@@ -12,11 +11,7 @@ import {
|
||||
} from '@/app/components/base/icons/src/vender/solid/general'
|
||||
import Tooltip from '@/app/components/base/tooltip'
|
||||
|
||||
type PriorityLabelProps = {
|
||||
className?: string
|
||||
}
|
||||
|
||||
const PriorityLabel = ({ className }: PriorityLabelProps) => {
|
||||
const PriorityLabel = () => {
|
||||
const { t } = useTranslation()
|
||||
const { plan } = useProviderContext()
|
||||
|
||||
@@ -42,18 +37,18 @@ const PriorityLabel = ({ className }: PriorityLabelProps) => {
|
||||
}
|
||||
</div>
|
||||
}>
|
||||
<span className={cn(`
|
||||
shrink-0 flex items-center ml-1 px-1 h-[18px] rounded-[5px] border border-text-accent-secondary
|
||||
text-2xs font-medium text-text-accent-secondary
|
||||
`, className)}>
|
||||
<span className={`
|
||||
flex items-center ml-1 px-[5px] h-[18px] rounded border border-[#C7D7FE]
|
||||
text-[10px] font-medium text-[#3538CD]
|
||||
`}>
|
||||
{
|
||||
plan.type === Plan.professional && (
|
||||
<ZapNarrow className='mr-0.5 size-3' />
|
||||
<ZapNarrow className='mr-0.5 w-3 h-3' />
|
||||
)
|
||||
}
|
||||
{
|
||||
(plan.type === Plan.team || plan.type === Plan.enterprise) && (
|
||||
<ZapFast className='mr-0.5 size-3' />
|
||||
<ZapFast className='mr-0.5 w-3 h-3' />
|
||||
)
|
||||
}
|
||||
{t(`billing.plansCommon.priority.${priority}`)}
|
||||
|
Reference in New Issue
Block a user