Added redirect to langflow.store

This commit is contained in:
Lucas Oliveira 2024-06-04 16:12:37 -03:00
commit 9a9b088843

View file

@ -23,6 +23,7 @@ import {
} from "../../../../constants/alerts_constants"; } from "../../../../constants/alerts_constants";
import { import {
CONTROL_PATCH_USER_STATE, CONTROL_PATCH_USER_STATE,
CREATE_API_KEY,
INSERT_API_KEY, INSERT_API_KEY,
INVALID_API_KEY, INVALID_API_KEY,
NO_API_KEY, NO_API_KEY,
@ -295,26 +296,38 @@ export default function GeneralPage() {
</CardDescription> </CardDescription>
</CardHeader> </CardHeader>
<CardContent> <CardContent>
<div className="flex w-full gap-4"> <div className="flex w-full flex-col gap-3">
<Form.Field name="apikey" className="w-full"> <div className="flex w-full gap-4">
<InputComponent <Form.Field name="apikey" className="w-full">
id="apikey" <InputComponent
onChange={(value) => { id="apikey"
handleInput({ target: { name: "apikey", value } }); onChange={(value) => {
}} handleInput({ target: { name: "apikey", value } });
value={apikey} }}
isForm value={apikey}
password={true} isForm
placeholder="Insert your API Key" password={true}
className="w-full" placeholder="Insert your API Key"
/> className="w-full"
<Form.Message />
match="valueMissing" <Form.Message
className="field-invalid" match="valueMissing"
className="field-invalid"
>
Please enter your API Key
</Form.Message>
</Form.Field>
</div>
<span className="pr-1 text-xs text-muted-foreground">
{CREATE_API_KEY}{" "}
<a
className="text-high-indigo underline"
href="https://langflow.store/"
target="_blank"
> >
Please enter your API Key langflow.store
</Form.Message> </a>
</Form.Field> </span>
</div> </div>
</CardContent> </CardContent>
<CardFooter className="border-t px-6 py-4"> <CardFooter className="border-t px-6 py-4">