Skip to content

Commit

Permalink
Frontend formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
marlonbaeten committed Mar 7, 2025
1 parent ad12bea commit ad3a19f
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion frontend/src/formatted.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use crate::{api::get_api_path, message_header::MessageHeader, types::MailMessage};
use wasm_bindgen::JsCast;
use web_sys::{Event, HtmlIFrameElement, HtmlLinkElement};
use yew::{function_component, html, Html, Properties};
use yew::{Html, Properties, function_component, html};

#[derive(Properties, Eq, PartialEq)]
pub struct FormattedProps {
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/list.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use crate::types::MailMessageMetadata;
use js_sys::Date;
use timeago::Formatter;
use yew::{function_component, html, html_nested, use_state, Callback, Html, Properties};
use yew::{Callback, Html, Properties, function_component, html, html_nested, use_state};
use yew_hooks::use_interval;

#[derive(Properties, PartialEq)]
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/message_header.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use crate::{dark_mode::toggle_body_invert, types::MailMessage};
use yew::{function_component, html, html_nested, Callback, Html, Properties};
use yew::{Callback, Html, Properties, function_component, html, html_nested};

#[derive(Properties, Eq, PartialEq)]
pub struct MessageHeaderProps {
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/overview.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use futures::{channel::mpsc::Sender, StreamExt};
use futures::{StreamExt, channel::mpsc::Sender};
use gloo_console::error;
use wasm_bindgen_futures::spawn_local;
use web_sys::NotificationOptions;
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/plaintext.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use crate::{message_header::MessageHeader, types::MailMessage};
use yew::{function_component, html, Html, Properties};
use yew::{Html, Properties, function_component, html};

#[derive(Properties, Eq, PartialEq)]
pub struct PlaintextProps {
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ use crate::{
use wasm_bindgen_futures::spawn_local;
use web_sys::MouseEvent;
use yew::{
function_component, html, use_effect_with, use_state, Callback, Html, Properties,
UseStateHandle,
Callback, Html, Properties, UseStateHandle, function_component, html, use_effect_with,
use_state,
};

#[derive(Properties, PartialEq)]
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/websocket.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use futures::{
channel::mpsc::{Receiver, Sender},
SinkExt, StreamExt,
channel::mpsc::{Receiver, Sender},
};
use gloo_console::error;
use gloo_net::websocket::{self, futures::WebSocket};
Expand Down

0 comments on commit ad3a19f

Please sign in to comment.