diff --git a/src/components/LoadFileMenu/index.tsx b/src/components/LoadFileMenu/index.tsx index b4b2ec192..2820b9878 100644 --- a/src/components/LoadFileMenu/index.tsx +++ b/src/components/LoadFileMenu/index.tsx @@ -7,7 +7,7 @@ import TRAJECTORIES from "../../constants/networked-trajectories"; import { URL_PARAM_KEY_FILE_NAME } from "../../constants"; import { ClearSimFileDataAction, - ConvertFileAction, + ConversionStatus, RequestLocalFileAction, RequestNetworkFileAction, } from "../../state/trajectory/types"; @@ -18,11 +18,10 @@ import { DownArrow } from "../Icons"; import { SetErrorAction, SetViewerStatusAction, - ViewerStatus, } from "../../state/viewer/types"; import styles from "./style.css"; -import { VIEWER_IMPORTING } from "../../state/viewer/constants"; +import { CONVERSION_INACTIVE } from "../../state/trajectory/constants"; interface LoadFileMenuProps { isBuffering: boolean; @@ -31,8 +30,7 @@ interface LoadFileMenuProps { loadLocalFile: ActionCreator; setViewerStatus: ActionCreator; setError: ActionCreator; - initializeFileConversionUI: ActionCreator; - viewerStatus: ViewerStatus; + conversionStatus: ConversionStatus; } const LoadFileMenu = ({ @@ -42,8 +40,7 @@ const LoadFileMenu = ({ selectFile, setViewerStatus, setError, - viewerStatus, - initializeFileConversionUI: initializeFileConversionUI, + conversionStatus, }: LoadFileMenuProps): JSX.Element => { const [isModalVisible, setIsModalVisible] = useState(false); const location = useLocation(); @@ -102,9 +99,6 @@ const LoadFileMenu = ({ to={{ pathname: IMPORT_PATHNAME, }} - onClick={() => { - initializeFileConversionUI(); - }} > Import other file type @@ -117,7 +111,9 @@ const LoadFileMenu = ({