Skip to content

Commit

Permalink
feat: Add HelpButton
Browse files Browse the repository at this point in the history
  • Loading branch information
uncomputable committed Oct 24, 2024
1 parent 8ff8a99 commit a32f5f2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/components/program_window/help_button.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
use leptos::{component, view, IntoView};

#[component]
pub fn HelpButton() -> impl IntoView {
view! {
<form action="https://github.com/uncomputable/simfony-webide/blob/master/doc/README.md" target="_blank">
<button class="button" type="submit">
<i class="fa-solid fa-question"></i>
" Help"
</button>
</form>
}
}
3 changes: 3 additions & 0 deletions src/components/program_window/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
mod address_button;
mod examples_dropdown;
mod help_button;
mod program_tab;
mod run_button;
mod share_button;
Expand All @@ -10,6 +11,7 @@ use leptos::{component, view, IntoView};

use self::address_button::AddressButton;
use self::examples_dropdown::ExamplesDropdown;
use self::help_button::HelpButton;
use self::program_tab::ProgramTab;
use self::run_button::RunButton;
use self::share_button::ShareButton;
Expand All @@ -26,6 +28,7 @@ pub fn ProgramWindow() -> impl IntoView {
<ExamplesDropdown />
<AddressButton />
<TransactionButton />
<HelpButton />
<ShareButton />
<div class="beta-tag">beta</div>
</Toolbar>
Expand Down

0 comments on commit a32f5f2

Please sign in to comment.