Added custom loading message

Mainly as a placeholder to implement i18n later
This commit is contained in:
Philipp Czora
2018-11-19 16:23:02 +01:00
parent 3d8323aa8a
commit fe746bec90

View File

@@ -47,6 +47,7 @@ class Autocomplete extends React.Component<Props, State> {
onChange={this.handleInputChange} onChange={this.handleInputChange}
value={selectValue} value={selectValue}
placeholder="Start typing..." // TODO: i18n placeholder="Start typing..." // TODO: i18n
loadingMessage={() => <>Loading...</>} // TODO: i18n
noOptionsMessage={() => <>No suggestion available</>} // TODO: i18n noOptionsMessage={() => <>No suggestion available</>} // TODO: i18n
/> />
</div> </div>