Unverified 提交 0c4aef6f authored 作者: Will Chen's avatar Will Chen 提交者: GitHub

dyad pro: do not show upgrade banner (#1537)

<!-- CURSOR_SUMMARY --> > [!NOTE] > Hide the “Upgrade to Dyad Pro” link in `ChatErrorBox` when `isDyadProEnabled` is true. > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit 424cd04f85385f923548b3fc54b4c83625992ade. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY -->
上级 133ca576
...@@ -99,12 +99,14 @@ export function ChatErrorBox({ ...@@ -99,12 +99,14 @@ export function ChatErrorBox({
<ChatErrorContainer onDismiss={onDismiss}> <ChatErrorContainer onDismiss={onDismiss}>
{error} {error}
<div className="mt-2 space-y-2 space-x-2"> <div className="mt-2 space-y-2 space-x-2">
<ExternalLink {!isDyadProEnabled && (
href="https://dyad.sh/pro?utm_source=dyad-app&utm_medium=app&utm_campaign=general-error" <ExternalLink
variant="primary" href="https://dyad.sh/pro?utm_source=dyad-app&utm_medium=app&utm_campaign=general-error"
> variant="primary"
Upgrade to Dyad Pro >
</ExternalLink> Upgrade to Dyad Pro
</ExternalLink>
)}
<ExternalLink href="https://www.dyad.sh/docs/faq"> <ExternalLink href="https://www.dyad.sh/docs/faq">
Read docs Read docs
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论