diff --git a/src/components/joined.rs b/src/components/joined.rs
index 6cc8cbe..aead27e 100644
--- a/src/components/joined.rs
+++ b/src/components/joined.rs
@@ -2,15 +2,6 @@ use leptos::*;
use crate::components::{Balance, Receive, ReceiveLn, Send, TxList};
use crate::context::ClientContext;
-use crate::utils::empty_view;
-
-#[derive(Clone, PartialEq)]
-enum Tab {
- TxList,
- Send,
- ReceiveLn,
- Receive,
-}
//
// Joined component
@@ -37,101 +28,88 @@ pub fn Joined() -> impl IntoView {
.unwrap_or_else(|| "Loading...".into())
};
- let (tab, set_tab) = create_signal(Tab::Receive);
+ let tab_change_signal = create_rw_signal(());
+
+ let menu_items = vec![
+ MenuItem {
+ title: "Transactions".into(),
+ view: view! { },
+ },
+ MenuItem {
+ title: "Redeem".into(),
+ view: view! { },
+ },
+ MenuItem {
+ title: "LN Send".into(),
+ view: view! { },
+ },
+ MenuItem {
+ title: "LN Receive".into(),
+ view: view! { },
+ },
+ ];
view! {
-
{federation_label}
-
-
- -
-
-
- -
-
-
- -
-
-
- -
-
-
-
+struct MenuItem {
+ title: String,
+ view: View,
+}
+
+#[component]
+fn Menu(
+ items: Vec