-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(cat-voices): add constants and URL parsing for supported wallets…
… in registration panel. Launching url in new tab (#1127) Co-authored-by: Dominik Toton <166132265+dtscalac@users.noreply.github.com>
- Loading branch information
Showing
3 changed files
with
22 additions
and
1 deletion.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
catalyst_voices/apps/voices/lib/common/constants/constants.dart
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,5 @@ | ||
abstract class VoicesConstants { | ||
/// External urls | ||
static const String supportedWalletsUrl = | ||
'https://docs.projectcatalyst.io/current-fund/voter-registration/supported-wallets'; | ||
} |
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 |
---|---|---|
|
@@ -7,3 +7,9 @@ extension StringExt on String { | |
} | ||
} | ||
} | ||
|
||
extension UrlParser on String { | ||
Uri getUri() { | ||
return Uri.parse(this); | ||
} | ||
} |
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