Unrefactor Properties form to allow more freedom on the input types and form #32

Merged
Siklos merged 10 commits from dev.betterProperties into dev 2022-08-16 08:57:54 -04:00
2 changed files with 8 additions and 2 deletions
Showing only changes of commit f0bfa39f33 - Show all commits

View file

@ -18,6 +18,7 @@ export const RadioGroupButtons: React.FunctionComponent<IRadioGroupButtonsProps>
<input
type='radio'
name={props.name}
className='m-2'
value={inputGroup.value}
checked={props.value === inputGroup.value}
onChange={props.onChange}
@ -31,6 +32,7 @@ export const RadioGroupButtons: React.FunctionComponent<IRadioGroupButtonsProps>
<input
type='radio'
name={props.name}
className='m-2'
value={inputGroup.value}
defaultChecked={props.defaultValue === inputGroup.value}
onChange={props.onChange}
@ -45,7 +47,9 @@ export const RadioGroupButtons: React.FunctionComponent<IRadioGroupButtonsProps>
<label>
{props.labelText}
</label>
<div id='XPositionReference'>
<div id='XPositionReference'
className='flex flex-col'
>
{ inputGroups }
</div>
</>

View file

@ -1,4 +1,6 @@
import React from 'react';
export interface IInputGroup {
text: string
text: React.ReactNode
value: string
}