Optimize Cloud66 integration sync function

This commit is contained in:
Tuan Dang
2023-07-23 22:16:27 +07:00
parent d48b5157d4
commit 77fdb6307c
4 changed files with 71 additions and 40 deletions
@@ -14,7 +14,7 @@ export default function Cloud66CreateIntegrationPage() {
try {
setApiKeyErrorText("");
if (apiKey.length === 0) {
setApiKeyErrorText("API Key cannot be blank");
setApiKeyErrorText("Access token cannot be blank");
return;
}
@@ -42,7 +42,7 @@ export default function Cloud66CreateIntegrationPage() {
<Card className="max-w-md rounded-md p-8">
<CardTitle className="text-center">Cloud 66 Integration</CardTitle>
<FormControl
label="Cloud 66 API Key"
label="Cloud 66 Personal Access Token"
errorText={apiKeyErrorText}
isError={apiKeyErrorText !== "" ?? false}
>