-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow scanning QR code from selected wallet screen
- Loading branch information
1 parent
b8ba104
commit 9378269
Showing
11 changed files
with
286 additions
and
60 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
// | ||
// AppAlertState.swift | ||
// Cove | ||
// | ||
// Created by Praveen Perera on 10/27/24. | ||
// | ||
|
||
public enum AppAlertState { | ||
case invalidWordGroup | ||
case duplicateWallet(WalletId) | ||
case errorImportingHotWallet(String) | ||
case importedSuccessfully | ||
case unableToSelectWallet | ||
case errorImportingHardwareWallet(String) | ||
case invalidFileFormat(String) | ||
case addressWrongNetwork(address: Address, network: Network, currentNetwork: Network) | ||
case noWalletSelected(Address) | ||
case foundAddress(Address) | ||
case noCameraPermission | ||
|
||
func title() -> String { | ||
switch self { | ||
case .invalidWordGroup: | ||
return "Words Not Valid" | ||
case .duplicateWallet: | ||
return "Duplicate Wallet" | ||
case .errorImportingHotWallet: | ||
return "Error" | ||
case .importedSuccessfully: | ||
return "Success" | ||
case .unableToSelectWallet: | ||
return "Error" | ||
case .errorImportingHardwareWallet: | ||
return "Error Importing Hardware Wallet" | ||
case .invalidFileFormat: | ||
return "Invalid File Format" | ||
case .addressWrongNetwork: | ||
return "Wrong Network" | ||
case .noWalletSelected: | ||
return "No Wallet Selected" | ||
case .foundAddress: | ||
return "Found Address" | ||
case .noCameraPermission: | ||
return "Camera Access is Required" | ||
} | ||
} | ||
} |
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,10 @@ | ||
// | ||
// AppSheetState.swift | ||
// Cove | ||
// | ||
// Created by Praveen Perera on 10/27/24. | ||
// | ||
|
||
public enum AppSheetState { | ||
case qr | ||
} |
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
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 |
---|---|---|
|
@@ -278,7 +278,3 @@ struct HelpView: View { | |
QrCodeImportScreen() | ||
.environment(MainViewModel()) | ||
} | ||
|
||
#Preview("help") { | ||
HelpView() | ||
} |
Oops, something went wrong.