mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
wip(desktop): progress
This commit is contained in:
parent
dda579c8ad
commit
ad5614bbb9
3 changed files with 5 additions and 5 deletions
|
|
@ -20,7 +20,7 @@ import { Link } from "@/components/link"
|
|||
import { DialogSelectProvider } from "./dialog-select-provider"
|
||||
import { DialogSelectModel } from "./dialog-select-model"
|
||||
|
||||
export function DialogConnect(props: { provider: string }) {
|
||||
export function DialogConnectProvider(props: { provider: string }) {
|
||||
const dialog = useDialog()
|
||||
const globalSync = useGlobalSync()
|
||||
const globalSDK = useGlobalSDK()
|
||||
|
|
@ -9,7 +9,7 @@ import { List, ListRef } from "@opencode-ai/ui/list"
|
|||
import { ProviderIcon } from "@opencode-ai/ui/provider-icon"
|
||||
import { IconName } from "@opencode-ai/ui/icons/provider"
|
||||
import { DialogSelectProvider } from "./dialog-select-provider"
|
||||
import { DialogConnect } from "./dialog-connect"
|
||||
import { DialogConnectProvider } from "./dialog-connect-provider"
|
||||
|
||||
export const DialogSelectModelUnpaid: Component = () => {
|
||||
const local = useLocal()
|
||||
|
|
@ -75,7 +75,7 @@ export const DialogSelectModelUnpaid: Component = () => {
|
|||
}}
|
||||
onSelect={(x) => {
|
||||
if (!x) return
|
||||
dialog.replace(() => <DialogConnect provider={x.id} />)
|
||||
dialog.replace(() => <DialogConnectProvider provider={x.id} />)
|
||||
}}
|
||||
>
|
||||
{(i) => (
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import { List } from "@opencode-ai/ui/list"
|
|||
import { Tag } from "@opencode-ai/ui/tag"
|
||||
import { ProviderIcon } from "@opencode-ai/ui/provider-icon"
|
||||
import { IconName } from "@opencode-ai/ui/icons/provider"
|
||||
import { DialogConnect } from "./dialog-connect"
|
||||
import { DialogConnectProvider } from "./dialog-connect-provider"
|
||||
|
||||
export const DialogSelectProvider: Component = () => {
|
||||
const dialog = useDialog()
|
||||
|
|
@ -34,7 +34,7 @@ export const DialogSelectProvider: Component = () => {
|
|||
}}
|
||||
onSelect={(x) => {
|
||||
if (!x) return
|
||||
dialog.replace(() => <DialogConnect provider={x.id} />)
|
||||
dialog.replace(() => <DialogConnectProvider provider={x.id} />)
|
||||
}}
|
||||
>
|
||||
{(i) => (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue