瀏覽代碼

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 年之前
committed by kyle
父節點
當前提交
6ba93ad43f
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      src/core/components/online-validator-badge.jsx

+ 1
- 1
src/core/components/online-validator-badge.jsx 查看文件

@@ -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} />
}


Loading…
取消
儲存