Fix eslint error
This commit is contained in:
parent
f2e26ec276
commit
ce455d2b0c
|
@ -7,16 +7,16 @@ function AutoSaveIndicator(props) {
|
|||
<Alert
|
||||
className='AutoSaveIndicator'
|
||||
{...rest}
|
||||
bsStyle={props.savingState === 'error' ? 'danger' : 'info'}
|
||||
bsStyle={savingState === 'error' ? 'danger' : 'info'}
|
||||
>
|
||||
{(() => {
|
||||
switch (props.savingState) {
|
||||
switch (savingState) {
|
||||
case 'saving':
|
||||
return 'Saving...';
|
||||
case 'saved':
|
||||
return 'Saved!';
|
||||
case 'error':
|
||||
return props.errorMessage;
|
||||
return errorMessage;
|
||||
default:
|
||||
return '';
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue