1- import { faSync } from '@fortawesome/free-solid-svg-icons'
1+ import { faQuestionCircle , faSync } from '@fortawesome/free-solid-svg-icons'
22import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
33import { objectPathGet } from '@sofie-automation/corelib/dist/lib'
44import React , { useCallback } from 'react'
@@ -7,6 +7,7 @@ import { ReadonlyDeep } from 'type-fest'
77import { OverrideOpHelperForItemContents , WrappedOverridableItemNormal } from '../../ui/Settings/util/OverrideOpHelper'
88import { DropdownInputOption , findOptionByValue } from './DropdownInput'
99import { hasOpWithPath } from './util'
10+ import Button from 'react-bootstrap/Button'
1011
1112export interface LabelAndOverridesProps < T extends object , TValue > {
1213 label : string
@@ -77,25 +78,30 @@ export function LabelAndOverrides<T extends object, TValue = any>({
7778
7879 < div className = "field-content" >
7980 { showClearButton && (
80- < button className = "btn btn-primary field-clear" onClick = { ( ) => setValue ( undefined ) } title = { t ( 'Clear value' ) } >
81+ < Button
82+ variant = "primary"
83+ className = "field-clear"
84+ onClick = { ( ) => setValue ( undefined ) }
85+ title = { t ( 'Clear value' ) }
86+ >
8187
8288 < FontAwesomeIcon icon = { faSync } />
83- </ button >
89+ </ Button >
8490 ) }
8591
8692 { children ( value , setValue ) }
8793 </ div >
8894
8995 { item . defaults && (
9096 < >
91- < span >
92- ( { t ( 'Default' ) } = { displayValue } )
97+ < span className = "field-default" >
98+ < FontAwesomeIcon icon = { faQuestionCircle } title = { ` ${ t ( 'Default' ) } : $ {displayValue } ` } />
9399 </ span >
94- < button className = "btn btn- primary" onClick = { clearOverride } title = "Reset to default" disabled = { ! isOverridden } >
100+ < Button variant = " primary" onClick = { clearOverride } title = "Reset to default" disabled = { ! isOverridden } >
95101 { t ( 'Reset' ) }
96102
97103 < FontAwesomeIcon icon = { faSync } />
98- </ button >
104+ </ Button >
99105 </ >
100106 ) }
101107
0 commit comments