Skip to content

Commit

Permalink
Move SVGs to img folder and update paths
Browse files Browse the repository at this point in the history
  • Loading branch information
raducristianpopa committed Jul 23, 2024
1 parent 4af5e5c commit e1164f6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
File renamed without changes
File renamed without changes
File renamed without changes
8 changes: 4 additions & 4 deletions src/pages/welcome.astro
Original file line number Diff line number Diff line change
Expand Up @@ -407,17 +407,17 @@ changeLanguage('en')

switch (result) {
case SuccessParam.SUCCESS:
heroLogo.src = 'success.svg'
heroLogo.src = '/img/success.svg'
heroInfo.textContent = CLOSE_TAB_MESSAGE
heroHeading.textContent = 'Your wallet was successfully connected to the extension.'
break
case SuccessParam.REJECTED:
heroLogo.src = 'warning.svg'
heroLogo.src = '/img/warning.svg'
heroInfo.textContent = CLOSE_TAB_MESSAGE
heroHeading.textContent = 'Your request was successfully rejected.'
break
case SuccessParam.ERROR:
heroLogo.src = 'error.svg'
heroLogo.src = '/img/error.svg'
heroInfo.textContent = CLOSE_TAB_MESSAGE
heroHeading.textContent = 'Something went wrong. Please try again.'
if (errorCode in ERROR_MESSAGES) {
Expand All @@ -427,7 +427,7 @@ changeLanguage('en')
}
break
case SuccessParam.INVALID:
heroLogo.src = 'error.svg'
heroLogo.src = '/img/error.svg'
heroInfo.textContent = CLOSE_TAB_MESSAGE
heroHeading.textContent = 'Something went wrong with your request. Please try reconnecting your wallet.'
break
Expand Down

0 comments on commit e1164f6

Please sign in to comment.