mirror of
				https://gitlab.nic.cz/turris/reforis/foris-js.git
				synced 2025-11-03 23:00:31 +01:00 
			
		
		
		
	Allow RadioSet accept elements as children.
This commit is contained in:
		@@ -17,7 +17,12 @@ RadioSet.propTypes = {
 | 
			
		||||
    /** Choices . */
 | 
			
		||||
    choices: PropTypes.arrayOf(PropTypes.shape({
 | 
			
		||||
        /** Choice lable . */
 | 
			
		||||
        label: PropTypes.string.isRequired,
 | 
			
		||||
        label: PropTypes.oneOfType([
 | 
			
		||||
            PropTypes.string,
 | 
			
		||||
            PropTypes.element,
 | 
			
		||||
            PropTypes.node,
 | 
			
		||||
            PropTypes.arrayOf(PropTypes.node),
 | 
			
		||||
        ]).isRequired,
 | 
			
		||||
        /** Choice value . */
 | 
			
		||||
        value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired,
 | 
			
		||||
    })).isRequired,
 | 
			
		||||
@@ -58,7 +63,12 @@ export function RadioSet({
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
Radio.propTypes = {
 | 
			
		||||
    label: PropTypes.string.isRequired,
 | 
			
		||||
    label: PropTypes.oneOfType([
 | 
			
		||||
        PropTypes.string,
 | 
			
		||||
        PropTypes.element,
 | 
			
		||||
        PropTypes.node,
 | 
			
		||||
        PropTypes.arrayOf(PropTypes.node),
 | 
			
		||||
    ]).isRequired,
 | 
			
		||||
    id: PropTypes.string.isRequired,
 | 
			
		||||
    helpText: PropTypes.string,
 | 
			
		||||
};
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user