refactor: update docs link to be modular (#3637)
changed docs link to be modular
This commit is contained in:
parent
47a9bf3890
commit
c9cf9d8304
2 changed files with 7 additions and 1 deletions
|
|
@ -12,6 +12,7 @@ import { AuthContext } from "../../contexts/authContext";
|
||||||
|
|
||||||
import { useLogout } from "@/controllers/API/queries/auth";
|
import { useLogout } from "@/controllers/API/queries/auth";
|
||||||
import { CustomLink } from "@/customization/components/custom-link";
|
import { CustomLink } from "@/customization/components/custom-link";
|
||||||
|
import { DOCS_LINK } from "@/customization/config-constants";
|
||||||
import {
|
import {
|
||||||
ENABLE_DARK_MODE,
|
ENABLE_DARK_MODE,
|
||||||
ENABLE_PROFILE_ICONS,
|
ENABLE_PROFILE_ICONS,
|
||||||
|
|
@ -257,7 +258,10 @@ export default function Header(): JSX.Element {
|
||||||
<DropdownMenuItem
|
<DropdownMenuItem
|
||||||
className="cursor-pointer gap-2"
|
className="cursor-pointer gap-2"
|
||||||
onClick={() =>
|
onClick={() =>
|
||||||
window.open("https://docs.langflow.org/", "_blank")
|
window.open(
|
||||||
|
DOCS_LINK || "https://docs.langflow.org/",
|
||||||
|
"_blank",
|
||||||
|
)
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
<ForwardedIconComponent name="FileText" className="w-4" />
|
<ForwardedIconComponent name="FileText" className="w-4" />
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,10 @@ export const PROXY_TARGET = "http://127.0.0.1:7860";
|
||||||
export const API_ROUTES = ["^/api/v1/", "/health"];
|
export const API_ROUTES = ["^/api/v1/", "/health"];
|
||||||
export const BASE_URL_API = "/api/v1/";
|
export const BASE_URL_API = "/api/v1/";
|
||||||
export const HEALTH_CHECK_URL = "/health_check";
|
export const HEALTH_CHECK_URL = "/health_check";
|
||||||
|
export const DOCS_LINK = "https://docs.langflow.com";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
DOCS_LINK,
|
||||||
BASENAME,
|
BASENAME,
|
||||||
PORT,
|
PORT,
|
||||||
PROXY_TARGET,
|
PROXY_TARGET,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue