diff --git a/auspice_client_customisation/splash.js b/auspice_client_customisation/splash.js index 4d773ef..32558e2 100644 --- a/auspice_client_customisation/splash.js +++ b/auspice_client_customisation/splash.js @@ -1,6 +1,6 @@ import React from "react"; import { handleDroppedFiles } from "./handleDroppedFiles"; -import { P, Bold, Title, CenterContent, Line, NextstrainTitle, GitHub } from './styles'; +import { P, Bold, Title, UploadBox, UploadButton, CenterContent, Line, NextstrainTitle, GitHub } from './styles'; import pkg from "../package.json"; @@ -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 (