From 00708bbf9b4875be7f19b393612cd853b2432eac Mon Sep 17 00:00:00 2001 From: Yehor Podporinov <50983498+yehor-podporinov@users.noreply.github.com> Date: Fri, 10 Nov 2023 12:26:47 +0200 Subject: [PATCH] Fix/Default types (#53) * updated default values for solidity types * added default subtype and value for tuple * replaced icon for default values --------- Co-authored-by: Yehor Podporinov --- assets/icons/keyboard-icon.svg | 3 ++ assets/styles/_global.scss | 14 +++++---- enums/icon-names.enum.ts | 1 + forms/AbiEncodeForm.vue | 53 +++++++++++++++++++++++++--------- helpers/abi-form.helpers.ts | 29 +++++++++++-------- 5 files changed, 70 insertions(+), 30 deletions(-) create mode 100644 assets/icons/keyboard-icon.svg diff --git a/assets/icons/keyboard-icon.svg b/assets/icons/keyboard-icon.svg new file mode 100644 index 0000000..6bcf10f --- /dev/null +++ b/assets/icons/keyboard-icon.svg @@ -0,0 +1,3 @@ + + + diff --git a/assets/styles/_global.scss b/assets/styles/_global.scss index c4eaa60..103f0ec 100644 --- a/assets/styles/_global.scss +++ b/assets/styles/_global.scss @@ -87,11 +87,6 @@ textarea { @include field-text; } -button, -a { - cursor: pointer; -} - body, span, p, @@ -101,6 +96,15 @@ a { @include p-16-regular; } +button, +a { + cursor: pointer; + + &:disabled { + cursor: not-allowed; + } +} + main { margin-top: var(--app-height-header); padding: var(--app-padding); diff --git a/enums/icon-names.enum.ts b/enums/icon-names.enum.ts index c84606b..d6f3916 100644 --- a/enums/icon-names.enum.ts +++ b/enums/icon-names.enum.ts @@ -14,6 +14,7 @@ export enum ICON_NAMES { exclamationCircle = 'exclamation-circle', exclamationTriangle = 'exclamation-triangle', hashtag = 'hashtag', + keyboard = 'keyboard', locationMarker = 'location-marker', plus = 'plus', refresh = 'refresh', diff --git a/forms/AbiEncodeForm.vue b/forms/AbiEncodeForm.vue index 3fb3681..51db338 100644 --- a/forms/AbiEncodeForm.vue +++ b/forms/AbiEncodeForm.vue @@ -38,7 +38,6 @@ + > + + -