Skip to content

Fix contentText PropType of InfoTooltip#9652

Merged
Gudahtt merged 1 commit intodevelopfrom
fix-info-tooltip-content-text-proptype
Oct 20, 2020
Merged

Fix contentText PropType of InfoTooltip#9652
Gudahtt merged 1 commit intodevelopfrom
fix-info-tooltip-content-text-proptype

Conversation

@Gudahtt
Copy link
Copy Markdown
Member

@Gudahtt Gudahtt commented Oct 20, 2020

The InfoTooltip component had a contentText prop with a PropType of string that was being passed a node as of #9614. This resulted in a PropType error.

The contentText prop was being passed directly to Tooltip component as the prop html, which has a PropType of node. A string is a valid node type, which is why this worked before.

The contentText prop is now of type node, and the error no longer appears.

The `InfoTooltip` component had a `contentText` prop with a PropType of
`string` that was being passed a `node` as of #9614. This resulted in a
PropType error.

The `contentText` prop was being passed directly to `Tooltip` component
as the prop `html`, which has a PropType of `node`. A string is a valid
`node` type, which is why this worked before.

The `contentText` prop is now of type `node`, and the error no longer
appears.
@Gudahtt Gudahtt requested a review from a team as a code owner October 20, 2020 00:54
@Gudahtt Gudahtt requested a review from danjm October 20, 2020 00:54
@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [f29d07d]
Page Load Metrics (373 ± 39 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint308341147
domContentLoaded3015963728139
load3025973738139
domInteractive3015963718139

@Gudahtt Gudahtt merged commit 4197ff7 into develop Oct 20, 2020
@Gudahtt Gudahtt deleted the fix-info-tooltip-content-text-proptype branch October 20, 2020 13:06
@github-actions github-actions bot locked and limited conversation to collaborators Oct 20, 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