@@ -76,31 +76,13 @@ const ActionButtons: React.FC<ActionButtonsProps> = ({
76
76
width : '100%'
77
77
} }
78
78
>
79
- < ActionButton
80
- sx = { {
81
- borderRadius : '0.2rem' ,
82
- backgroundColor : 'transparent' ,
83
- border : `1px solid ${ theme . palette . border . normal } ` ,
84
- gap : '10px' ,
85
- color : theme . palette . text . default
86
- } }
87
- onClick = { ( ) =>
88
- cleanedType === VIEWS
89
- ? downloadYaml ( details . pattern_file , details . name )
90
- : downloadPattern ( details . id , details . name , getDownloadUrl )
91
- }
92
- >
93
- < Download width = { 24 } height = { 24 } fill = { theme . palette . icon . default } />
94
- Download
95
- </ ActionButton >
96
-
97
79
{ cleanedType !== FILTERS && (
98
80
< ActionButton
99
81
sx = { {
82
+ backgroundColor : showOpenPlaygroundAction ? 'transparent' : undefined ,
83
+ color : theme . palette . text . default ,
100
84
borderRadius : '0.2rem' ,
101
85
gap : '10px' ,
102
- color : theme . palette . text . default ,
103
- backgroundColor : 'transparent' ,
104
86
border : `1px solid ${ theme . palette . border . normal } `
105
87
} }
106
88
onClick = { ( ) => handleClone ( details ?. name , details ?. id ) }
@@ -116,6 +98,23 @@ const ActionButtons: React.FC<ActionButtonsProps> = ({
116
98
) }
117
99
</ ActionButton >
118
100
) }
101
+ < ActionButton
102
+ sx = { {
103
+ borderRadius : '0.2rem' ,
104
+ backgroundColor : 'transparent' ,
105
+ border : `1px solid ${ theme . palette . border . normal } ` ,
106
+ gap : '10px' ,
107
+ color : theme . palette . text . default
108
+ } }
109
+ onClick = { ( ) =>
110
+ cleanedType === VIEWS
111
+ ? downloadYaml ( details . pattern_file , details . name )
112
+ : downloadPattern ( details . id , details . name , getDownloadUrl )
113
+ }
114
+ >
115
+ < Download width = { 24 } height = { 24 } fill = { theme . palette . icon . default } />
116
+ Download
117
+ </ ActionButton >
119
118
</ div >
120
119
) }
121
120
0 commit comments