Skip to content

Use undefined as default prop for onClick#9654

Merged
rickycodes merged 1 commit intodevelopfrom
make-default-props-consistent
Oct 21, 2020
Merged

Use undefined as default prop for onClick#9654
rickycodes merged 1 commit intodevelopfrom
make-default-props-consistent

Conversation

@rickycodes
Copy link
Copy Markdown
Contributor

Was taking a look at how this is handled in the extension, it seems this is the one instance where we're using null vs undefined which we use here: https://github.com/MetaMask/metamask-extension/blob/develop/ui/app/components/ui/menu/menu-item.js#L32 here: https://github.com/MetaMask/metamask-extension/blob/develop/ui/app/components/ui/metafox-logo/metafox-logo.component.js#L12 and a few other spots

thought we might as well make it consistent

@rickycodes rickycodes requested a review from a team as a code owner October 20, 2020 03:44
@rickycodes rickycodes requested a review from rekmarks October 20, 2020 03:44
@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [bdaea3c]
Page Load Metrics (441 ± 54 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint338743116
domContentLoaded31268743911354
load31468944111354
domInteractive31268743811354

@Gudahtt
Copy link
Copy Markdown
Member

Gudahtt commented Oct 20, 2020

It looks like this needs to be rebased. The dependency audit failure was fixed a while back.

From the look of the commit history, you may have accidentally based this off of swaps/develop instead of origin/develop perhaps? Or just haven't fetched in a while.

@rickycodes rickycodes force-pushed the make-default-props-consistent branch from bdaea3c to 3b0908e Compare October 20, 2020 14:16
@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [3b0908e]
Page Load Metrics (421 ± 56 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint2999502211
domContentLoaded30780641911756
load30980742111756
domInteractive30780641911756

Copy link
Copy Markdown
Member

@Gudahtt Gudahtt left a comment

Choose a reason for hiding this comment

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

Sure! Why not.

@rickycodes rickycodes merged commit 5118717 into develop Oct 21, 2020
@rickycodes rickycodes deleted the make-default-props-consistent branch October 21, 2020 04:30
@github-actions github-actions bot locked and limited conversation to collaborators Oct 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants