Kaynağa Gözat

improve: hide loading validator image (#4287)

* hide missing validator image

* Render nothing if validator badge has not loaded/received errors

* Revert style changes
bubble
Helder Sepulveda 6 yıl önce
committed by kyle
ebeveyn
işleme
6ba93ad43f
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. +1
    -1
      src/core/components/online-validator-badge.jsx

+ 1
- 1
src/core/components/online-validator-badge.jsx Dosyayı Görüntüle

@@ -101,7 +101,7 @@ class ValidatorImage extends React.Component {
if (this.state.error) {
return <img alt={"Error"} />
} else if (!this.state.loaded) {
return <img alt= {"Loading..."} />
return null
}
return <img src={this.props.src} alt={this.props.alt} />
}


Yükleniyor…
İptal
Kaydet