Update info link

This commit is contained in:
Dominic Grimm 2023-03-08 15:16:43 +01:00
parent 1e140df16c
commit 30d50eb572
No known key found for this signature in database
GPG Key ID: 6F294212DEAAC530
3 changed files with 2 additions and 35 deletions

View File

@ -119,9 +119,9 @@ impl Component for Navbar {
</div>
<div class={classes!("navbar-end")}>
<Link<routes::Route> to={routes::Route::Info} classes={classes!("navbar-item")}>
<a href="https://git.dergrimm.net/mentorenwahl/mentorenwahl" classes={classes!("navbar-item")}>
{ "Info" }
</Link<routes::Route>>
</a>
<div class={classes!("navbar-item")}>
<div class={classes!("buttons")}>

View File

@ -1,23 +0,0 @@
use yew::prelude::*;
use crate::components;
pub struct Info;
impl Component for Info {
type Message = ();
type Properties = ();
fn create(_ctx: &Context<Self>) -> Self {
Self
}
fn view(&self, _ctx: &Context<Self>) -> Html {
html! {
<>
<components::title::Title title="Informationen" />
<h1>{ "Informationen" }</h1>
</>
}
}
}

View File

@ -6,7 +6,6 @@ use crate::layouts;
pub mod home;
pub mod index;
pub mod info;
pub mod login;
pub mod not_found;
pub mod settings;
@ -19,8 +18,6 @@ pub enum Route {
Home,
#[at("/settings")]
Settings,
#[at("/info")]
Info,
#[at("/login")]
Login,
#[not_found]
@ -80,13 +77,6 @@ pub fn switch(routes: Route) -> Html {
</layouts::logged_in::LoggedIn>
}
}
Route::Info => {
html! {
<layouts::main::Main token={token.to_owned()}>
<info::Info />
</layouts::main::Main>
}
}
Route::Login => html! {
<login::Login {token} />
},