@@ -35,7 +35,7 @@ import type { ViewUpdate } from "@codemirror/view";
3535import { drawSelection , dropCursor , highlightSpecialChars , keymap , lineNumbers } from "@codemirror/view" ;
3636import { dracula , tomorrow } from "@mjfwebb/thememirror" ;
3737import { tokens } from "@neo4j-ndl/base" ;
38- import { Button , IconButton } from "@neo4j-ndl/react" ;
38+ import { CleanIconButton , OutlinedButton } from "@neo4j-ndl/react" ;
3939import { PlayIconOutline } from "@neo4j-ndl/react/icons" ;
4040import classNames from "classnames" ;
4141import { graphql as graphqlExtension } from "cm6-graphql" ;
@@ -201,37 +201,35 @@ export const QueryEditor = ({ loading, onSubmit, schema }: Props) => {
201201 extension = { Extension . GRAPHQL }
202202 rightButtons = {
203203 < >
204- < Button
204+ < OutlinedButton
205205 aria-label = "Prettify code"
206206 className = { classNames (
207207 "mr-2" ,
208208 theme . theme === Theme . LIGHT ? "ndl-theme-light" : "ndl-theme-dark"
209209 ) }
210- color = "neutral"
211- fill = "outlined"
210+ variant = "neutral"
212211 size = "small"
213212 onClick = { formatTheCode }
214213 isDisabled = { loading }
215214 >
216215 Prettify
217- </ Button >
218- < IconButton
216+ </ OutlinedButton >
217+ < CleanIconButton
219218 htmlAttributes = { {
220219 "data-test-editor-query-button" : "true" ,
221220 } }
222- ariaLabel = "Execute query"
221+ description = "Execute query"
223222 style = { { height : "1.7rem" } }
224223 className = { classNames ( theme . theme === Theme . LIGHT ? "ndl-theme-light" : "ndl-theme-dark" ) }
225- isClean
226224 onClick = { ( ) => onSubmit ( ) }
227225 isDisabled = { ! schema || loading }
228226 >
229227 < PlayIconOutline
230228 style = { {
231- color : tokens . colors . baltic [ 50 ] ,
229+ color : tokens . palette . baltic [ 50 ] ,
232230 } }
233231 />
234- </ IconButton >
232+ </ CleanIconButton >
235233 </ >
236234 }
237235 borderRadiusTop = { false }
0 commit comments