Skip to content

Commit

Permalink
add component attr for import_key
Browse files Browse the repository at this point in the history
  • Loading branch information
miralandlabs committed Jun 20, 2024
1 parent c6d7dc1 commit 44fe2df
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/components/import_key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ pub enum ImportKeyStep {
Import,
}

// MI
#[component]
pub fn ImportKey() -> Element {
let mut step = use_signal(|| ImportKeyStep::Loading);
let sol_balance = use_sol_balance();
Expand Down Expand Up @@ -59,6 +61,8 @@ pub fn ImportKey() -> Element {
e
}

// MI
#[component]
fn ImportKeyLoading() -> Element {
rsx! {
div {
Expand Down Expand Up @@ -88,6 +92,8 @@ fn ImportKeyWarning(step: Signal<ImportKeyStep>, balance: u64) -> Element {
}
}

// MI
#[component]
fn ImportKeyHeader() -> Element {
rsx! {
div {
Expand All @@ -109,6 +115,8 @@ fn ImportKeyHeader() -> Element {

const KEY_LENGTH: usize = 64;

// MI
#[component]
fn ImportKeyImport() -> Element {
let mut sol_balance = use_signal::<Option<u64>>(|| None);
let mut keypair_persistent = use_keypair_persistent();
Expand Down

0 comments on commit 44fe2df

Please sign in to comment.