@@ -76,31 +76,13 @@ const ActionButtons: React.FC<ActionButtonsProps> = ({
7676 width : '100%'
7777 } }
7878 >
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-
9779 { cleanedType !== FILTERS && (
9880 < ActionButton
9981 sx = { {
82+ backgroundColor : showOpenPlaygroundAction ? 'transparent' : undefined ,
83+ color : theme . palette . text . default ,
10084 borderRadius : '0.2rem' ,
10185 gap : '10px' ,
102- color : theme . palette . text . default ,
103- backgroundColor : 'transparent' ,
10486 border : `1px solid ${ theme . palette . border . normal } `
10587 } }
10688 onClick = { ( ) => handleClone ( details ?. name , details ?. id ) }
@@ -116,6 +98,23 @@ const ActionButtons: React.FC<ActionButtonsProps> = ({
11698 ) }
11799 </ ActionButton >
118100 ) }
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 >
119118 </ div >
120119 ) }
121120
0 commit comments