Skip to content

Commit

Permalink
Merge pull request #13 from elsirion/2023-08-add-title
Browse files Browse the repository at this point in the history
feat: add title
  • Loading branch information
elsirion authored Aug 19, 2023
2 parents 833d46a + 213c8ac commit a271dc2
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ fedimint-ln-client = { git = "https://github.com/fedimint/fedimint", rev = "183b
futures = "0.3.28"
hex = "0.4.3"
leptos = { version = "0.4.8", features = ["csr"] }
leptos_meta = { version = "0.4.8", features = ["csr"] }
lightning-invoice = { version = "0.21.0", features = [ "serde" ] }

console_error_panic_hook = "0.1.7"
Expand Down
2 changes: 2 additions & 0 deletions src/components/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ use crate::client::ClientRpc;
use crate::context::provide_client_context;
use crate::utils::empty_view;
use leptos::*;
use leptos_meta::Title;

//
// App component
Expand All @@ -22,6 +23,7 @@ pub fn App(cx: Scope) -> impl IntoView {
let joined = move || join_action.value().get().is_some();

view! { cx,
<Title text="Fedimint Web Client" />
<div class="h-[100dvh]">
<div class="mx-auto w-full h-full flex flex-col max-w-[600px] p-6">
<header class="flex justify-center mb-20">
Expand Down

0 comments on commit a271dc2

Please sign in to comment.