@@ -23,14 +23,12 @@ export const ManualRunButtons = () => {
23
23
const { fetchDeployments } = useCacheStore ( ) ;
24
24
const [ savingManualRun , setSavingManualRun ] = useState ( false ) ;
25
25
26
- const { activeDeploymentStore, entrypointFunction, isManualRunEnabled, saveProjectManualRun } = useManualRunStore (
27
- ( state ) => ( {
28
- activeDeploymentStore : state . projectManualRun [ projectId ! ] ?. activeDeployment ,
29
- entrypointFunction : state . projectManualRun [ projectId ! ] ?. entrypointFunction ,
30
- isManualRunEnabled : state . projectManualRun [ projectId ! ] ?. isManualRunEnabled ,
31
- saveProjectManualRun : state . saveAndExecuteManualRun ,
32
- } )
33
- ) ;
26
+ const { entrypointFunction, isManualRunEnabled, saveProjectManualRun } = useManualRunStore ( ( state ) => ( {
27
+ activeDeploymentStore : state . projectManualRun [ projectId ! ] ?. activeDeployment ,
28
+ entrypointFunction : state . projectManualRun [ projectId ! ] ?. entrypointFunction ,
29
+ isManualRunEnabled : state . projectManualRun [ projectId ! ] ?. isManualRunEnabled ,
30
+ saveProjectManualRun : state . saveAndExecuteManualRun ,
31
+ } ) ) ;
34
32
35
33
const openManualRunSettings = useCallback ( ( ) => {
36
34
openDrawer ( DrawerName . projectManualRunSettings ) ;
@@ -54,13 +52,7 @@ export const ManualRunButtons = () => {
54
52
return ;
55
53
}
56
54
addToast ( {
57
- message : (
58
- < ManualRunSuccessToastMessage
59
- deploymentId = { activeDeploymentStore ?. deploymentId }
60
- projectId = { projectId }
61
- sessionId = { sessionId }
62
- />
63
- ) ,
55
+ message : < ManualRunSuccessToastMessage projectId = { projectId } sessionId = { sessionId } /> ,
64
56
type : "success" ,
65
57
position : "top-right" ,
66
58
offset : 35 ,
@@ -85,30 +77,30 @@ export const ManualRunButtons = () => {
85
77
< div className = "relative flex h-8 gap-1.5 self-center rounded-3xl border border-gray-750 p-1 transition hover:border-white" >
86
78
< Button
87
79
ariaLabel = { t ( "ariaSettingsRun" ) }
88
- className = "group h-full whitespace-nowrap p-1 hover:bg-gray-1050 active:bg-black"
80
+ className = "h-full p-1 group whitespace-nowrap hover:bg-gray-1050 active:bg-black"
89
81
disabled = { ! isManualRunEnabled }
90
82
onClick = { openManualRunSettings }
91
83
title = { t ( "ariaSettingsRun" ) }
92
84
variant = "light"
93
85
>
94
86
< IconSvg
95
- className = "stroke-white transition group-hover:stroke-green-200 group-active:stroke-green-800"
87
+ className = "transition stroke-white group-hover:stroke-green-200 group-active:stroke-green-800"
96
88
src = { GearIcon }
97
89
/>
98
90
</ Button >
99
91
100
- < div className = "w-px bg-gray-750 transition " />
92
+ < div className = "w-px transition bg-gray-750" />
101
93
102
94
< Button
103
95
ariaLabel = { t ( "manual" ) }
104
- className = "group h-full gap-2 whitespace-nowrap hover:bg-gray-1050 active:bg-black"
96
+ className = "h-full gap-2 group whitespace-nowrap hover:bg-gray-1050 active:bg-black"
105
97
disabled = { isRunDisabled }
106
98
id = "tourManualRunButton"
107
99
onClick = { startManualRun }
108
100
variant = "light"
109
101
>
110
102
< IconSvg
111
- className = "stroke-white transition group-hover:stroke-green-200 group-active:stroke-green-800"
103
+ className = "transition stroke-white group-hover:stroke-green-200 group-active:stroke-green-800"
112
104
src = { ! savingManualRun ? RunIcon : Spinner }
113
105
/>
114
106
0 commit comments