mentorenwahl/frontend/src/routes/not_found.rs
Dominic Grimm 8055a5e4db
Some checks failed
continuous-integration/drone/push Build is failing
Update
2023-01-17 06:56:19 +01:00

32 lines
674 B
Rust

use yew::prelude::*;
use crate::components;
use crate::layouts;
#[derive(Properties, PartialEq)]
pub struct NotFoundProps {
pub token: Option<String>,
}
pub struct NotFound;
impl Component for NotFound {
type Message = ();
type Properties = NotFoundProps;
fn create(_ctx: &Context<Self>) -> Self {
Self
}
fn view(&self, ctx: &Context<Self>) -> Html {
html! {
<>
<components::title::Title title="404 Not found" />
<layouts::main::Main token={ctx.props().token.to_owned()}>
<h1>{ "404" }</h1>
</layouts::main::Main>
</>
}
}
}