Update info link
This commit is contained in:
parent
1e140df16c
commit
30d50eb572
|
@ -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")}>
|
||||
|
|
|
@ -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>
|
||||
</>
|
||||
}
|
||||
}
|
||||
}
|
|
@ -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} />
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue