Fix wrong URL path

This commit is contained in:
Cecile Tonglet 2020-10-19 15:44:58 +02:00
parent 628cba209e
commit 6887677ff8

View file

@ -113,7 +113,7 @@ impl Component for App {
/> />
<MenuItem <MenuItem
text={html!("Button Group")} text={html!("Button Group")}
href="#bgroup" href="#button-group"
onclick=self.link onclick=self.link
.callback(|_| Msg::GoToMenu(DocMenu::ButtonGroup)) .callback(|_| Msg::GoToMenu(DocMenu::ButtonGroup))
/> />
@ -230,7 +230,7 @@ impl Component for App {
pub enum DocMenu { pub enum DocMenu {
#[to = "/#button"] #[to = "/#button"]
Button, Button,
#[to = "/#bgroup"] #[to = "/#button-group"]
ButtonGroup, ButtonGroup,
#[to = "/#callout"] #[to = "/#callout"]
Callout, Callout,