Skip to content

Commit d95756d

Browse files
committed
Nicer Switch branch buttons in the table
1 parent aaf5045 commit d95756d

File tree

1 file changed

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

1 file changed

+12
-3
lines changed

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

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ import { cn } from "~/utils/cn";
6767
import { branchesPath, docsPath, ProjectParamSchema, v3BillingPath } from "~/utils/pathBuilder";
6868
import { useCurrentPlan } from "../_app.orgs.$organizationSlug/route";
6969
import { ArchiveButton } from "../resources.branches.archive";
70+
import { IconArrowBearRight2, IconArrowMoveUpFilled } from "@tabler/icons-react";
7071

7172
export const BranchesOptions = z.object({
7273
search: z.string().optional(),
@@ -319,7 +320,15 @@ export default function Page() {
319320
isSticky
320321
hiddenButtons={
321322
isSelected ? null : (
322-
<PopoverMenuItem to={path} title="Switch to branch" />
323+
<LinkButton
324+
to={path}
325+
variant="secondary/small"
326+
LeadingIcon={IconArrowBearRight2}
327+
leadingIconClassName="text-blue-500 -mr-2"
328+
className="pl-1.5"
329+
>
330+
Switch to branch
331+
</LinkButton>
323332
)
324333
}
325334
popoverContent={
@@ -328,8 +337,8 @@ export default function Page() {
328337
{isSelected ? null : (
329338
<PopoverMenuItem
330339
to={path}
331-
icon={ArrowRightIcon}
332-
leadingIconClassName="text-blue-500"
340+
icon={IconArrowBearRight2}
341+
leadingIconClassName="text-blue-500 -mr-0.5 -ml-1"
333342
title="Switch to branch"
334343
/>
335344
)}

0 commit comments

Comments
 (0)