Skip to content

Commit

Permalink
refine import key
Browse files Browse the repository at this point in the history
  • Loading branch information
miralandlabs committed Jun 21, 2024
1 parent c27fa68 commit 9273f0f
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/components/import_key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ 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 @@ -61,8 +59,6 @@ pub fn ImportKey() -> Element {
e
}

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

// MI
#[component]
fn ImportKeyHeader() -> Element {
rsx! {
div {
Expand All @@ -115,17 +109,14 @@ 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();
let mut err_msg = use_signal::<Option<String>>(|| None);
let mut enable_import_button = use_signal(|| false);
let mut private_key_input = use_signal(|| "".to_string());
let gateway = use_gateway();
// let nav = navigator(); // MI
let nav = use_navigator();
let nav = navigator();
log::info!("OK: ... {}", private_key_input.read().clone()); // MI

use_future(move || {
Expand Down

0 comments on commit 9273f0f

Please sign in to comment.