rename formfield files for clarity

This commit is contained in:
gingervitis
2021-01-31 00:48:39 -08:00
parent 0cc72b0d4c
commit c255b81093
7 changed files with 154 additions and 230 deletions

View File

@ -44,7 +44,7 @@ export const INPUT_STATES = {
};
// Don't like any of the default messages in INPUT_STATES? Create a state with custom message by providing an icon style with your message.
export function createInputStatus(type: InputStatusTypes, message: string): StatusState {
export function createInputStatus(type: InputStatusTypes, message?: string): StatusState {
if (!type || !INPUT_STATES[type]) {
return null;
}