Update Kodu homepage links

This commit is contained in:
Saoud Rizwan
2024-08-25 16:13:56 -04:00
parent 7fa7589ed0
commit d2be6b7030
3 changed files with 10 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
import { VSCodeButton, VSCodeLink } from "@vscode/webview-ui-toolkit/react"
import { ApiConfiguration } from "../../../src/shared/api"
import { getKoduSignInUrl } from "../../../src/shared/kodu"
import { getKoduHomepageUrl, getKoduSignInUrl } from "../../../src/shared/kodu"
import VSCodeButtonLink from "./VSCodeButtonLink"
interface AnnouncementProps {
@@ -35,7 +35,9 @@ const Announcement = ({ version, hideAnnouncement, apiConfiguration, vscodeUriSc
<ul style={{ margin: "0 0 8px", paddingLeft: "20px" }}>
<li>
Excited to announce that{" "}
<VSCodeLink href={getKoduSignInUrl(vscodeUriScheme)} style={{ display: "inline" }}>
<VSCodeLink
href={apiConfiguration?.koduApiKey ? getKoduHomepageUrl() : getKoduSignInUrl(vscodeUriScheme)}
style={{ display: "inline" }}>
Kodu
</VSCodeLink>{" "}
is offering $10 free credits to help new users get the most out of Claude Dev with high rate limits