add footer to host setup screen for checking build
This commit is contained in:
parent
f6cf92bc40
commit
390a757928
|
|
@ -29,8 +29,8 @@ use yew::prelude::*;
|
|||
use crate::{
|
||||
clients::client::connection::{Connection2, ConnectionError},
|
||||
components::{
|
||||
Button, CoverOfDarkness, Identity, Story,
|
||||
client::{ClientFooter, ClientNav, Signin},
|
||||
Button, CoverOfDarkness, Footer, Identity, Story,
|
||||
client::{ClientNav, Signin},
|
||||
},
|
||||
storage::StorageKey,
|
||||
};
|
||||
|
|
@ -253,7 +253,7 @@ pub fn Client2(ClientProps { auto_join }: &ClientProps) -> Html {
|
|||
<>
|
||||
{nav}
|
||||
{content}
|
||||
<ClientFooter />
|
||||
<Footer />
|
||||
</>
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ use yew::{html::Scope, prelude::*};
|
|||
use crate::{
|
||||
callback,
|
||||
components::{
|
||||
Button, Lobby, LobbyPlayerAction, RoleReveal, Settings, Story, Victory,
|
||||
Button, Footer, Lobby, LobbyPlayerAction, RoleReveal, Settings, Story, Victory,
|
||||
action::{ActionResultView, Prompt},
|
||||
host::{CharacterStatesReadOnly, DaytimePlayerList, Setup},
|
||||
},
|
||||
|
|
@ -559,12 +559,19 @@ impl Component for Host {
|
|||
</nav>
|
||||
}
|
||||
});
|
||||
let footer =
|
||||
(self.big_screen.not() && matches!(self.state, HostState::Lobby { .. })).then(|| {
|
||||
html! {
|
||||
<Footer />
|
||||
}
|
||||
});
|
||||
html! {
|
||||
<>
|
||||
{nav}
|
||||
<div class="content">
|
||||
{content}
|
||||
</div>
|
||||
{footer}
|
||||
</>
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ use crate::components::{Dialog, WithConfirmation};
|
|||
const SOURCE_CODE_URL: &str = "https://sectorinf.com/emilis/werewolves";
|
||||
|
||||
#[function_component]
|
||||
pub fn ClientFooter() -> Html {
|
||||
pub fn Footer() -> Html {
|
||||
let about_dialog_state = use_state(|| false);
|
||||
let about_dialog = about_dialog_state.then(|| {
|
||||
let cancel_signout = {
|
||||
Loading…
Reference in New Issue