fix(import): only accept json files to create application (#1287)

This commit is contained in:
Yash Joshi 2021-10-26 18:38:49 +05:30 committed by GitHub
parent 669bc896fc
commit 7931e9b8f7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -360,7 +360,7 @@ class HomePage extends React.Component {
<span className="spinner-border spinner-border-sm me-2" role="status"></span>
)}
Import
<input type="file" ref={this.fileInput} style={{ display: 'none' }} />
<input type="file" accept=".json" ref={this.fileInput} style={{ display: 'none' }} />
</label>
</button>
</div>