Skip to content

feat: add address format toggle in receive tabs#2408

Merged
Keith-CY merged 1 commit intodevelopfrom
add-format-switch-in-receive-tab
Jun 1, 2022
Merged

feat: add address format toggle in receive tabs#2408
Keith-CY merged 1 commit intodevelopfrom
add-format-switch-in-receive-tab

Conversation

@Keith-CY
Copy link
Collaborator

@Keith-CY Keith-CY commented May 31, 2022

Add a button next to the address in receive tabs to toggle
address foramts between full version and deprecated version.

The switch is designed to be neglectable because the deprecated
format is discouraged.

Ref: Magickbase/neuron-public-issues#22

Screen.Recording.2022-05-31.at.21.15.40.mov

Add a button next to the address in receive tabs to toggle
address foramts between full version and deprecated version.

The switch is designed to be neglectable because the deprecated
format is discouraged.

Ref: Magickbase/neuron-public-issues#22
@Keith-CY Keith-CY force-pushed the add-format-switch-in-receive-tab branch from e8fa040 to c2e42df Compare May 31, 2022 16:49
import styles from './sUDTReceive.module.scss'

const { DEFAULT_SUDT_FIELDS } = CONSTANTS
const toShortAddr = (addr: string) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This function looks almost the same as toShortAddr at Receive/index/tsx

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I left them in component modules respectively because they are simple and will be removed eventually. Without sharing them between components makes sure no codes will be left on removing.

@yanguoyu yanguoyu self-requested a review June 1, 2022 01:53
Copy link
Contributor

@Cedar67 Cedar67 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2022-06-01.10.25.06.mov

@yanguoyu yanguoyu self-requested a review June 1, 2022 02:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants