edu verify button
This commit is contained in:
parent
ed83f5f1ca
commit
b2780f7c4b
@ -6,6 +6,7 @@ import {
|
|||||||
RiBook2Line,
|
RiBook2Line,
|
||||||
RiBox3Line,
|
RiBox3Line,
|
||||||
RiFileEditLine,
|
RiFileEditLine,
|
||||||
|
RiGraduationCapLine,
|
||||||
RiGroup3Line,
|
RiGroup3Line,
|
||||||
RiGroupLine,
|
RiGroupLine,
|
||||||
RiSquareLine,
|
RiSquareLine,
|
||||||
@ -15,6 +16,7 @@ import VectorSpaceInfo from '../usage-info/vector-space-info'
|
|||||||
import AppsInfo from '../usage-info/apps-info'
|
import AppsInfo from '../usage-info/apps-info'
|
||||||
import UpgradeBtn from '../upgrade-btn'
|
import UpgradeBtn from '../upgrade-btn'
|
||||||
import { useProviderContext } from '@/context/provider-context'
|
import { useProviderContext } from '@/context/provider-context'
|
||||||
|
import Button from '@/app/components/base/button'
|
||||||
import UsageInfo from '@/app/components/billing/usage-info'
|
import UsageInfo from '@/app/components/billing/usage-info'
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
@ -58,14 +60,22 @@ const PlanComp: FC<Props> = ({
|
|||||||
</div>
|
</div>
|
||||||
<div className='system-xs-regular text-util-colors-gray-gray-600'>{t(`billing.plans.${type}.for`)}</div>
|
<div className='system-xs-regular text-util-colors-gray-gray-600'>{t(`billing.plans.${type}.for`)}</div>
|
||||||
</div>
|
</div>
|
||||||
{(plan.type as any) !== SelfHostedPlan.enterprise && (
|
<div className='shrink-0 flex items-center gap-1'>
|
||||||
<UpgradeBtn
|
{/* {(plan.type === Plan.sandbox || plan.type === Plan.professional) && ( */}
|
||||||
className='shrink-0'
|
<Button variant='ghost'>
|
||||||
isPlain={type === Plan.team}
|
<RiGraduationCapLine className='w-4 h-4 mr-1'/>
|
||||||
isShort
|
{t('billing.educationVerification')}
|
||||||
loc={loc}
|
</Button>
|
||||||
/>
|
{/* )} */}
|
||||||
)}
|
{(plan.type as any) !== SelfHostedPlan.enterprise && (
|
||||||
|
<UpgradeBtn
|
||||||
|
className='shrink-0'
|
||||||
|
isPlain={type === Plan.team}
|
||||||
|
isShort
|
||||||
|
loc={loc}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{/* Plan detail */}
|
{/* Plan detail */}
|
||||||
|
@ -14,6 +14,7 @@ const translation = {
|
|||||||
encourage: 'Upgrade Now',
|
encourage: 'Upgrade Now',
|
||||||
encourageShort: 'Upgrade',
|
encourageShort: 'Upgrade',
|
||||||
},
|
},
|
||||||
|
educationVerification: 'Get Education Verified',
|
||||||
viewBilling: 'Manage billing and subscriptions',
|
viewBilling: 'Manage billing and subscriptions',
|
||||||
buyPermissionDeniedTip: 'Please contact your enterprise administrator to subscribe',
|
buyPermissionDeniedTip: 'Please contact your enterprise administrator to subscribe',
|
||||||
plansCommon: {
|
plansCommon: {
|
||||||
|
@ -13,6 +13,7 @@ const translation = {
|
|||||||
encourage: '立即升级',
|
encourage: '立即升级',
|
||||||
encourageShort: '升级',
|
encourageShort: '升级',
|
||||||
},
|
},
|
||||||
|
educationVerification: '获得教育认证',
|
||||||
viewBilling: '管理账单及订阅',
|
viewBilling: '管理账单及订阅',
|
||||||
buyPermissionDeniedTip: '请联系企业管理员订阅',
|
buyPermissionDeniedTip: '请联系企业管理员订阅',
|
||||||
plansCommon: {
|
plansCommon: {
|
||||||
|
Loading…
Reference in New Issue
Block a user