-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27 from MutinyWallet/receive-status
show receive generating / success states
- Loading branch information
Showing
4 changed files
with
58 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,17 @@ | ||
use iced::widget::{column, container, scrollable, text_input}; | ||
use iced::Length; | ||
use iced::{Alignment, Element}; | ||
use iced::widget::{column, container, scrollable}; | ||
use iced::Element; | ||
use iced::{Length, Padding}; | ||
|
||
use crate::components::h_header; | ||
use crate::{HarborWallet, Message}; | ||
|
||
pub fn transfer(harbor: &HarborWallet) -> Element<Message> { | ||
container( | ||
scrollable( | ||
column![ | ||
"Let's transfer some ecash!", | ||
text_input("how much?", &harbor.transfer_amount_str) | ||
.on_input(Message::TransferAmountChanged,) | ||
] | ||
.spacing(32) | ||
.align_items(Alignment::Center) | ||
.width(Length::Fill), | ||
) | ||
.height(Length::Fill), | ||
) | ||
pub fn transfer(_harbor: &HarborWallet) -> Element<Message> { | ||
container(scrollable( | ||
column![h_header("Transfer", "Coming soon!")] | ||
.spacing(48) | ||
.width(Length::Fill) | ||
.max_width(512) | ||
.padding(Padding::new(48.)), | ||
)) | ||
.into() | ||
} |