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 a8a0673 commit 3b936c3
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 @@ -25,6 +25,11 @@ const SplashContent = (props) => {
handleDroppedFiles(props.dispatch, event.dataTransfer.files);
}

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

return (
<div className="static container">

Expand All @@ -44,6 +49,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 3b936c3

Please sign in to comment.