Skip to content

Commit 7937003

Browse files
committed
Fixed docs link
1 parent c0c8f7d commit 7937003

File tree

1 file changed

+9
-13
lines changed
  • apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.branches

1 file changed

+9
-13
lines changed

apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.branches/route.tsx

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,14 @@ import { BookOpenIcon } from "@heroicons/react/24/solid";
1111
import { DialogClose } from "@radix-ui/react-dialog";
1212
import { Form, useActionData, useSearchParams } from "@remix-run/react";
1313
import { type ActionFunctionArgs, json, type LoaderFunctionArgs } from "@remix-run/server-runtime";
14+
import { GitMeta } from "@trigger.dev/core/v3";
1415
import { useCallback } from "react";
1516
import { typedjson, useTypedLoaderData } from "remix-typedjson";
1617
import { z } from "zod";
1718
import { BranchEnvironmentIconSmall } from "~/assets/icons/EnvironmentIcons";
1819
import { BranchesNoBranchableEnvironment, BranchesNoBranches } from "~/components/BlankStatePanels";
1920
import { Feedback } from "~/components/Feedback";
21+
import { GitMetadata } from "~/components/GitMetadata";
2022
import { V4Title } from "~/components/V4Badge";
2123
import { AdminDebugTooltip } from "~/components/admin/debugTooltip";
2224
import { InlineCode } from "~/components/code/InlineCode";
@@ -63,23 +65,13 @@ import { useProject } from "~/hooks/useProject";
6365
import { useThrottle } from "~/hooks/useThrottle";
6466
import { redirectWithErrorMessage, redirectWithSuccessMessage } from "~/models/message.server";
6567
import { BranchesPresenter } from "~/presenters/v3/BranchesPresenter.server";
68+
import { logger } from "~/services/logger.server";
6669
import { requireUserId } from "~/services/session.server";
6770
import { UpsertBranchService } from "~/services/upsertBranch.server";
6871
import { cn } from "~/utils/cn";
69-
import {
70-
branchesPath,
71-
docsPath,
72-
ProjectParamSchema,
73-
v3BillingPath,
74-
v3EnvironmentPath,
75-
} from "~/utils/pathBuilder";
72+
import { branchesPath, docsPath, ProjectParamSchema, v3BillingPath } from "~/utils/pathBuilder";
7673
import { useCurrentPlan } from "../_app.orgs.$organizationSlug/route";
7774
import { ArchiveButton } from "../resources.branches.archive";
78-
import { GitMeta } from "@trigger.dev/core/v3";
79-
import { logger } from "~/services/logger.server";
80-
import { TextLink } from "~/components/primitives/TextLink";
81-
import { GitBranchIcon, GitCommitIcon, GitPullRequestIcon } from "lucide-react";
82-
import { GitMetadata } from "~/components/GitMetadata";
8375

8476
export const BranchesOptions = z.object({
8577
search: z.string().optional(),
@@ -214,7 +206,11 @@ export default function Page() {
214206
</Property.Table>
215207
</AdminDebugTooltip>
216208

217-
<LinkButton variant={"docs/small"} LeadingIcon={BookOpenIcon} to={docsPath("branches")}>
209+
<LinkButton
210+
variant={"docs/small"}
211+
LeadingIcon={BookOpenIcon}
212+
to={docsPath("deployment/preview-branches")}
213+
>
218214
Branches docs
219215
</LinkButton>
220216

0 commit comments

Comments
 (0)