chore: generate
This commit is contained in:
@@ -103,7 +103,8 @@ export function createDialogProviderOptions() {
|
|||||||
|
|
||||||
toast.show({
|
toast.show({
|
||||||
variant: "error",
|
variant: "error",
|
||||||
message: "Provider ids must start with a lowercase letter or number and only use lowercase letters, numbers, hyphens, and underscores",
|
message:
|
||||||
|
"Provider ids must start with a lowercase letter or number and only use lowercase letters, numbers, hyphens, and underscores",
|
||||||
})
|
})
|
||||||
return promptCustomProviderID()
|
return promptCustomProviderID()
|
||||||
}
|
}
|
||||||
@@ -192,22 +193,12 @@ export function createDialogProviderOptions() {
|
|||||||
}
|
}
|
||||||
if (result.data?.method === "code") {
|
if (result.data?.method === "code") {
|
||||||
dialog.replace(() => (
|
dialog.replace(() => (
|
||||||
<CodeMethod
|
<CodeMethod providerID={providerID} title={method.label} index={index} authorization={result.data!} />
|
||||||
providerID={providerID}
|
|
||||||
title={method.label}
|
|
||||||
index={index}
|
|
||||||
authorization={result.data!}
|
|
||||||
/>
|
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
if (result.data?.method === "auto") {
|
if (result.data?.method === "auto") {
|
||||||
dialog.replace(() => (
|
dialog.replace(() => (
|
||||||
<AutoMethod
|
<AutoMethod providerID={providerID} title={method.label} index={index} authorization={result.data!} />
|
||||||
providerID={providerID}
|
|
||||||
title={method.label}
|
|
||||||
index={index}
|
|
||||||
authorization={result.data!}
|
|
||||||
/>
|
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user