Skip to content

Commit f30a3ba

Browse files
authored
Remove cmd+k quick actions from instance detail page (#2305)
remove instance stop/start/etc quick actions from instance detail page
1 parent a1a23da commit f30a3ba

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

app/pages/project/instances/instance/InstancePage.tsx

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import { MoreActionsMenu } from '~/components/MoreActionsMenu'
2323
import { RefreshButton } from '~/components/RefreshButton'
2424
import { RouteTabs, Tab } from '~/components/RouteTabs'
2525
import { InstanceStatusBadge } from '~/components/StatusBadge'
26-
import { getInstanceSelector, useInstanceSelector, useQuickActions } from '~/hooks'
26+
import { getInstanceSelector, useInstanceSelector } from '~/hooks'
2727
import { EmptyCell } from '~/table/cells/EmptyCell'
2828
import { DateTime } from '~/ui/lib/DateTime'
2929
import { PageHeader, PageTitle } from '~/ui/lib/PageHeader'
@@ -128,18 +128,6 @@ export function InstancePage() {
128128
],
129129
[instance, makeActions]
130130
)
131-
const quickActions = useMemo(
132-
() =>
133-
actions
134-
// in the quick menu we do not show disabled actions
135-
.filter((a) => !a.disabled)
136-
// append "instance" to labels
137-
// TODO: if these were in an "Instance actions" subsection they might not
138-
// need the suffix for clarity
139-
.map((a) => ({ onSelect: a.onActivate, value: a.label })),
140-
[actions]
141-
)
142-
useQuickActions(quickActions)
143131

144132
const memory = filesize(instance.memory, { output: 'object', base: 2 })
145133

0 commit comments

Comments
 (0)