Closed masakudamatsu closed 4 years ago
We change back the PropTypes of the boolean state variable props (cssButtonDisabled
, previewButtonDisabled
, nextButtonDisabled
) to string. As we use the string-only sessionStorage
to keep the state variables, we should avoid using boolean.
The initial value of the most props is
''
, to usesessionStorage
(which allows string values only).For number props, this causes a PropTypes error.
The solution is to allow
''
as one of the expected types:(The same for boolean props.)