Options panels refactoring (#196)
* Refactor library options to match chapter options using shared component * Disable some eslint rules * Cleanup SourceOptions layout to use same components as other panels
This commit is contained in:
@@ -48,11 +48,9 @@ function TwoSatePreference(props: TwoStatePreferenceProps) {
|
||||
}
|
||||
|
||||
export function CheckBoxPreference(props: CheckBoxPreferenceProps) {
|
||||
// eslint-disable-next-line react/jsx-props-no-spreading
|
||||
return <TwoSatePreference {...props} type="Checkbox" />;
|
||||
}
|
||||
export function SwitchPreferenceCompat(props: SwitchPreferenceCompatProps) {
|
||||
// eslint-disable-next-line react/jsx-props-no-spreading
|
||||
return <TwoSatePreference {...props} type="Switch" />;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user