fix: more links
This commit is contained in:
@@ -1,4 +1,6 @@
|
|||||||
|
import { useAppParams } from '@/hooks/use-app-params';
|
||||||
import { useScrollAnchor } from '@/hooks/use-scroll-anchor';
|
import { useScrollAnchor } from '@/hooks/use-scroll-anchor';
|
||||||
|
import { Link } from '@tanstack/react-router';
|
||||||
import type { UIMessage } from 'ai';
|
import type { UIMessage } from 'ai';
|
||||||
import { Loader2Icon } from 'lucide-react';
|
import { Loader2Icon } from 'lucide-react';
|
||||||
import { useEffect } from 'react';
|
import { useEffect } from 'react';
|
||||||
@@ -18,6 +20,7 @@ export function ChatMessages({
|
|||||||
status: 'submitted' | 'streaming' | 'ready' | 'error';
|
status: 'submitted' | 'streaming' | 'ready' | 'error';
|
||||||
isLimited: boolean;
|
isLimited: boolean;
|
||||||
}) {
|
}) {
|
||||||
|
const { organizationId } = useAppParams();
|
||||||
const { messagesRef, scrollRef, visibilityRef, scrollToBottom } =
|
const { messagesRef, scrollRef, visibilityRef, scrollToBottom } =
|
||||||
useScrollAnchor();
|
useScrollAnchor();
|
||||||
|
|
||||||
@@ -60,12 +63,15 @@ export function ChatMessages({
|
|||||||
To keep using this feature you need to upgrade your account.
|
To keep using this feature you need to upgrade your account.
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<ProjectLink
|
<Link
|
||||||
href="/settings/organization?tab=billing"
|
to="/$organizationId/billing"
|
||||||
|
params={{
|
||||||
|
organizationId,
|
||||||
|
}}
|
||||||
className="font-medium underline"
|
className="font-medium underline"
|
||||||
>
|
>
|
||||||
Visit Billing
|
Visit Billing
|
||||||
</ProjectLink>{' '}
|
</Link>{' '}
|
||||||
to upgrade.
|
to upgrade.
|
||||||
</p>
|
</p>
|
||||||
</AlertDescription>
|
</AlertDescription>
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ export async function trialEndingSoonJob(
|
|||||||
to: organization.createdBy?.email,
|
to: organization.createdBy?.email,
|
||||||
data: {
|
data: {
|
||||||
organizationName: organization.name,
|
organizationName: organization.name,
|
||||||
url: `https://dashboard.openpanel.dev/${organization.id}/${project.id}/settings/organization?tab=billing`,
|
url: `https://dashboard.openpanel.dev/${organization.id}/billing`,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user