-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(wallet): resize saved address popup to remove network selection
when ENS name is resolved. Resolve ENS name before used in SendModal
- Loading branch information
1 parent
f934615
commit e5384b2
Showing
3 changed files
with
110 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
import QtQuick 2.15 | ||
import QtQuick.Controls 2.15 | ||
import QtQuick.Layouts 1.15 | ||
|
||
import Storybook 1.0 | ||
import Models 1.0 | ||
import AppLayouts.Wallet.popups 1.0 | ||
|
||
import utils 1.0 | ||
|
||
SplitView { | ||
orientation: Qt.Horizontal | ||
|
||
PopupBackground { | ||
id: popupBg | ||
|
||
property var popupIntance: null | ||
|
||
SplitView.fillWidth: true | ||
SplitView.fillHeight: true | ||
|
||
Button { | ||
id: reopenButton | ||
anchors.centerIn: parent | ||
text: "Reopen" | ||
enabled: !dialog.visible | ||
|
||
onClicked: dialog.open() | ||
} | ||
|
||
AddEditSavedAddressPopup { | ||
id: dialog | ||
|
||
visible: true | ||
|
||
// Emulate resoling ENS by simple validation | ||
QtObject { | ||
id: mainModule | ||
|
||
function resolveENS(name, uuid) { | ||
if (Utils.isValidEns(name)) { | ||
resolvedENS("", "0x1234567890123456789012345678901234567890", uuid) | ||
} | ||
else { | ||
resolvedENS("", "", uuid) | ||
} | ||
} | ||
|
||
signal resolvedENS(string pubkey, string address, string uuid) | ||
} | ||
|
||
Component.onCompleted: initWithParams() | ||
} | ||
} | ||
|
||
Pane { | ||
SplitView.minimumWidth: 300 | ||
SplitView.preferredWidth: 300 | ||
} | ||
} | ||
|
||
// category: Popups | ||
|
||
// https://www.figma.com/file/idUoxN7OIW2Jpp3PMJ1Rl8/%E2%9A%99%EF%B8%8F-Settings-%7C-Desktop?type=design&node-id=23256-263282&mode=design&t=0DRwQJKDGYJPHkq1-4 |
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