Skip to content

Commit cd0738f

Browse files
committed
Remove recent runs button tooltip as it causes nesting errors
1 parent 36c89dc commit cd0738f

File tree

1 file changed

+8
-19
lines changed
  • apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.test.tasks.$taskParam

1 file changed

+8
-19
lines changed

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

Lines changed: 8 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1107,25 +1107,14 @@ function RecentRunsPopover<T extends StandardRun | ScheduledRun>({
11071107
return (
11081108
<Popover open={isRecentRunsPopoverOpen} onOpenChange={setIsRecentRunsPopoverOpen}>
11091109
<PopoverTrigger asChild>
1110-
{runs.length === 0 ? (
1111-
<SimpleTooltip
1112-
button={
1113-
<Button
1114-
type="button"
1115-
variant="tertiary/small"
1116-
LeadingIcon={ClockRotateLeftIcon}
1117-
disabled={true}
1118-
>
1119-
Recent runs
1120-
</Button>
1121-
}
1122-
content="No runs yet"
1123-
/>
1124-
) : (
1125-
<Button type="button" variant="tertiary/small" LeadingIcon={ClockRotateLeftIcon}>
1126-
Recent runs
1127-
</Button>
1128-
)}
1110+
<Button
1111+
type="button"
1112+
variant="tertiary/small"
1113+
LeadingIcon={ClockRotateLeftIcon}
1114+
disabled={runs.length === 0}
1115+
>
1116+
Recent runs
1117+
</Button>
11291118
</PopoverTrigger>
11301119
<PopoverContent className="min-w-[279px] p-0" align="end" sideOffset={6}>
11311120
<div className="max-h-80 overflow-y-auto">

0 commit comments

Comments
 (0)