Skip to content

Commit fb7a3ee

Browse files
committed
Switch to a custom icon for recent runs button
1 parent d4e6a29 commit fb7a3ee

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
export function ClockRotateLeftIcon({ className }: { className?: string }) {
2+
return (
3+
<svg className={className} viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
4+
<path
5+
d="M4.01784 10.9999C4.27072 9.07068 5.21806 7.29972 6.68252 6.01856C8.14697 4.73741 10.0282 4.03389 11.9739 4.03971C13.9197 4.04553 15.7966 4.76028 17.2534 6.05017C18.7101 7.34006 19.6469 9.11666 19.8882 11.0474C20.1296 12.9781 19.659 14.9306 18.5645 16.5394C17.4701 18.1482 15.8268 19.303 13.9424 19.7876C12.0579 20.2722 10.0615 20.0534 8.32671 19.1721C6.59196 18.2909 5.23784 16.8076 4.51784 14.9999M4.01784 19.9999L4.01784 14.9999L9.01784 14.9999"
6+
stroke="currentColor"
7+
stroke-width="2"
8+
stroke-linecap="round"
9+
stroke-linejoin="round"
10+
/>
11+
<path d="M12 12L12 8" stroke="currentColor" stroke-width="2" stroke-linecap="round" />
12+
<path d="M12 12L14 14" stroke="currentColor" stroke-width="2" stroke-linecap="round" />
13+
</svg>
14+
);
15+
}

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { conform, useForm } from "@conform-to/react";
22
import { parse } from "@conform-to/zod";
33
import { BeakerIcon, RectangleStackIcon } from "@heroicons/react/20/solid";
4-
import { ClockIcon } from "@heroicons/react/24/outline";
54
import { type ActionFunction, type LoaderFunctionArgs, json } from "@remix-run/server-runtime";
65
import { useCallback, useEffect, useRef, useState, useMemo } from "react";
76
import { typedjson, useTypedLoaderData } from "remix-typedjson";
@@ -57,6 +56,7 @@ import { RunTagInput } from "~/components/runs/v3/RunTagInput";
5756
import { type loader as queuesLoader } from "~/routes/resources.orgs.$organizationSlug.projects.$projectParam.env.$envParam.queues";
5857
import { DateTime } from "~/components/primitives/DateTime";
5958
import { TaskRunStatusCombo } from "~/components/runs/v3/TaskRunStatus";
59+
import { ClockRotateLeftIcon } from "~/assets/icons/ClockRotateLeftIcon";
6060

6161
export const loader = async ({ request, params }: LoaderFunctionArgs) => {
6262
const userId = await requireUserId(request);
@@ -1118,7 +1118,7 @@ function RecentRunsPopover<T extends StandardRun | ScheduledRun>({
11181118
<Button
11191119
type="button"
11201120
variant="tertiary/small"
1121-
LeadingIcon={ClockIcon}
1121+
LeadingIcon={ClockRotateLeftIcon}
11221122
disabled={true}
11231123
>
11241124
Recent runs
@@ -1127,7 +1127,7 @@ function RecentRunsPopover<T extends StandardRun | ScheduledRun>({
11271127
content="No runs yet"
11281128
/>
11291129
) : (
1130-
<Button type="button" variant="tertiary/small" LeadingIcon={ClockIcon}>
1130+
<Button type="button" variant="tertiary/small" LeadingIcon={ClockRotateLeftIcon}>
11311131
Recent runs
11321132
</Button>
11331133
)}

0 commit comments

Comments
 (0)