Skip to content

Commit

Permalink
Add file picker
Browse files Browse the repository at this point in the history
  • Loading branch information
victorlin committed Dec 14, 2023
1 parent e3eec82 commit c6b195a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions auspice_client_customisation/splash.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ const SplashContent = (props) => {
handleDroppedFiles(props.dispatch, event.dataTransfer.files);
}

function handlePicked(event) {
event.preventDefault();
handleDroppedFiles(props.dispatch, event.target.files);
}

function datasetLink(path) {
return (
<div
Expand Down Expand Up @@ -55,6 +60,8 @@ const SplashContent = (props) => {
</CenterContent>

<CenterContent>
<Line/>
<input type="file" multiple onChange={handlePicked} />
<Line/>
<h2 style={{color: "#30353f", fontSize: 24}}>{`Drag & Drop a dataset on here to view`}</h2>
<Line/>
Expand Down

0 comments on commit c6b195a

Please sign in to comment.