diff --git a/src/frontend/app.rs b/src/frontend/app.rs index 429e537..1c4bca7 100644 --- a/src/frontend/app.rs +++ b/src/frontend/app.rs @@ -1,14 +1,17 @@ -use crate::frontend::components::protected_route::IbisProtectedRoute; use crate::{ common::SiteView, frontend::{ api::CLIENT, - components::nav::Nav, + components::{nav::Nav, protected_route::IbisProtectedRoute}, dark_mode::DarkMode, pages::{ article::{ - actions::ArticleActions, create::CreateArticle, edit::EditArticle, - history::ArticleHistory, list::ListArticles, read::ReadArticle, + actions::ArticleActions, + create::CreateArticle, + edit::EditArticle, + history::ArticleHistory, + list::ListArticles, + read::ReadArticle, }, diff::EditDiff, instance::{details::InstanceDetails, list::ListInstances}, @@ -59,7 +62,7 @@ impl DefaultResource for Resource { } pub fn shell(options: LeptosOptions) -> impl IntoView { view! { - + diff --git a/src/frontend/components/mod.rs b/src/frontend/components/mod.rs index 6ee98a4..22ca03c 100644 --- a/src/frontend/components/mod.rs +++ b/src/frontend/components/mod.rs @@ -4,4 +4,4 @@ pub mod credentials; pub mod editor; pub mod instance_follow_button; pub mod nav; -pub mod protected_route; \ No newline at end of file +pub mod protected_route; diff --git a/src/frontend/components/protected_route.rs b/src/frontend/components/protected_route.rs index 1b4d591..1135d44 100644 --- a/src/frontend/components/protected_route.rs +++ b/src/frontend/components/protected_route.rs @@ -1,9 +1,10 @@ +use crate::frontend::app::is_logged_in; use leptos::prelude::*; use leptos_router::{ components::{ProtectedRoute, ProtectedRouteProps}, - NestedRoute, SsrMode, + NestedRoute, + SsrMode, }; -use crate::frontend::app::is_logged_in; #[component(transparent)] pub fn IbisProtectedRoute(