diff --git a/plate-tool-web/src/components/callbacks/main_window_callbacks/export_callbacks.rs b/plate-tool-web/src/components/callbacks/main_window_callbacks/export_callbacks.rs index 94a796c..3a956a0 100644 --- a/plate-tool-web/src/components/callbacks/main_window_callbacks/export_callbacks.rs +++ b/plate-tool-web/src/components/callbacks/main_window_callbacks/export_callbacks.rs @@ -2,18 +2,18 @@ use js_sys::Array; -use wasm_bindgen::{prelude::*, JsCast, JsValue}; +use wasm_bindgen::{JsCast, JsValue}; use web_sys::{ - Blob, HtmlAnchorElement, HtmlDialogElement, HtmlElement, HtmlFormElement, HtmlInputElement, Url, + Blob, HtmlAnchorElement, Url, }; use yew::prelude::*; -use yewdux::prelude::*; -use crate::components::states::{CurrentTransfer, MainState}; + +use crate::components::states::MainState; use crate::state_to_csv; -type NoParamsCallback = Box; +// type NoParamsCallback = Box; pub fn export_csv_button_callback(main_state: std::rc::Rc) -> Callback { Callback::from(move |_| { @@ -24,7 +24,6 @@ pub fn export_csv_button_callback(main_state: std::rc::Rc) -> Callbac .unwrap(); return; } - web_sys::window().unwrap().alert_with_message("CSV export is currently not importable. Export as JSON if you'd like to back up your work!").unwrap(); if let Ok(csv) = state_to_csv(&main_state) { save_str(&csv, "transfers.csv"); }