1- import { Box , Link , Typography } from "@mui/material" ;
2- import { SetStateAction , Dispatch , useState } from "react" ;
3- import { AdvancedJobOptionsDialog } from "./dialog/advanced-job-options-dialog" ;
41import { RawJobOptions } from "@/types" ;
2+ import SettingsIcon from "@mui/icons-material/Settings" ;
3+ import { Box , Button , Typography } from "@mui/material" ;
4+ import { Dispatch , SetStateAction , useState } from "react" ;
5+ import { AdvancedJobOptionsDialog } from "./dialog/advanced-job-options-dialog" ;
56
67export type AdvancedJobOptionsProps = {
78 jobOptions : RawJobOptions ;
@@ -17,26 +18,27 @@ export const AdvancedJobOptions = ({
1718 const [ open , setOpen ] = useState ( false ) ;
1819
1920 return (
20- < Box sx = { { mb : 2 } } >
21- < Link
22- component = "button"
23- variant = "body2"
21+ < Box sx = { { display : "flex" , alignItems : "center" , gap : 1 } } >
22+ < Button
23+ variant = "outlined"
2424 onClick = { ( ) => setOpen ( true ) }
25+ startIcon = { < SettingsIcon /> }
2526 sx = { {
26- textDecoration : "none" ,
27- color : "primary.main" ,
27+ textTransform : "none" ,
28+ borderRadius : 2 ,
29+ px : 2 ,
30+ py : 1 ,
31+ borderColor : "divider" ,
32+ color : "text.secondary" ,
2833 "&:hover" : {
29- color : "primary.dark" ,
30- textDecoration : "underline" ,
34+ borderColor : "primary.main" ,
35+ color : "primary.main" ,
36+ bgcolor : "action.hover" ,
3137 } ,
32- paddingLeft : 1 ,
33- display : "inline-flex" ,
34- alignItems : "center" ,
35- gap : 0.5 ,
3638 } }
3739 >
38- < Typography variant = "body2" > Advanced Job Options</ Typography >
39- </ Link >
40+ < Typography variant = "body2" > Advanced Options</ Typography >
41+ </ Button >
4042
4143 < AdvancedJobOptionsDialog
4244 open = { open }
0 commit comments