Skip to content

Commit

Permalink
feat: hook logic in implicit account creation step 1 (#7894)
Browse files Browse the repository at this point in the history
* feat: add account to routes

* feat: add to analytics featureflag

* feat: add account view and multistep

* style: refinements

* feat: rename  files and add locale

* feat: prepare UI step 1

* feat: add locales

* fix: update naming

* feat: update naming and improve code

* fix: move comment

* fix import

* feat: hook logic

* fix: remove accountImplicit route and add to wallet tab

* fix: improve naming

* Update packages/desktop/views/dashboard/wallet/Wallet.svelte

* Update packages/desktop/views/dashboard/wallet/Wallet.svelte

* fix: add router

* minor fixes

* ix: add missing dots

* fix: colors

* fix: remove unnecessary function

* fix: rename files

* fix: move if/else and key block

* fix: reset after finish

* fix: undo changes

* feat: use implicitAccountCreationAddress

* fix: rename and remove onmount

---------

Co-authored-by: Begoña Álvarez de la Cruz <balvarez@boxfish.studio>
  • Loading branch information
evavirseda and begonaalvarezd authored Jan 18, 2024
1 parent 6535788 commit 20d2330
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@
import { Button, FontWeight, Text, TextType } from 'shared/components'
import { localize } from '@core/i18n'
import { setClipboard } from '@core/utils'
import { selectedWallet } from '@core/wallet'
let isVisibleAddress: boolean = false
let implicitAccountCreationAddress: string = ''
// TODO: Replace with proper address
const DUMMY_ADDRESS = 'iota1q9f0mlq8yxpx2nck8a0slxnzr4ef2ek8f5gqxlzd0wasgp73utryjtzcp98'
function showAddress() {
async function showAddress() {
implicitAccountCreationAddress = await $selectedWallet?.implicitAccountCreationAddress()
isVisibleAddress = true
}
function onCopyClick(): void {
setClipboard(DUMMY_ADDRESS)
setClipboard(implicitAccountCreationAddress)
}
</script>

Expand Down Expand Up @@ -60,7 +60,7 @@
fontSize="14"
fontWeight={FontWeight.medium}
color="gray-900"
darkColor="white">{DUMMY_ADDRESS}</Text
darkColor="white">{implicitAccountCreationAddress}</Text
>
</div>
<Button outline onClick={onCopyClick} classes="shrink-0"
Expand Down

0 comments on commit 20d2330

Please sign in to comment.