MCPcopy Create free account
hub / github.com/DioxusLabs/dioxus-components / AppLayout

Function AppLayout

preview/src/main.rs:223–234  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

221
222#[component]
223fn AppLayout() -> Element {
224 use_effect(move || {
225 theme::theme_seed();
226 if let Some(dark_mode) = Route::in_dark_mode() {
227 theme::set_theme(dark_mode);
228 }
229 });
230
231 rsx! {
232 Outlet::<Route> {}
233 }
234}
235
236#[component]
237fn NavigationLayout() -> Element {

Callers

nothing calls this directly

Calls 2

theme_seedFunction · 0.85
set_themeFunction · 0.85

Tested by

no test coverage detected