mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 12:55:00 +00:00
fix(core): ai subscribe button is not show in ai usage page (#8869)
This commit is contained in:
@@ -31,6 +31,7 @@ export const AIUsagePanel = ({
|
||||
useEffect(() => {
|
||||
// revalidate latest subscription status
|
||||
subscriptionService.subscription.revalidate();
|
||||
subscriptionService.prices.revalidate();
|
||||
}, [subscriptionService]);
|
||||
const copilotQuotaService = useService(UserCopilotQuotaService);
|
||||
useEffect(() => {
|
||||
|
||||
@@ -74,7 +74,12 @@ export const AISubscribe = ({
|
||||
onBeforeCheckout={onBeforeCheckout}
|
||||
checkoutOptions={checkoutOptions}
|
||||
renderer={props => (
|
||||
<Button variant="primary" {...props} {...btnProps}>
|
||||
<Button
|
||||
variant="primary"
|
||||
{...props}
|
||||
{...btnProps}
|
||||
data-testid="ai-subscribe-button"
|
||||
>
|
||||
{btnProps.children ?? `${priceReadable} / ${priceFrequency}`}
|
||||
{displayedFrequency === 'monthly' ? (
|
||||
<span
|
||||
|
||||
Reference in New Issue
Block a user