MetaMask / metamask-extension

:globe_with_meridians: :electric_plug: The MetaMask browser extension enables browsing Ethereum blockchain enabled websites
https://metamask.io
Other
11.57k stars 4.73k forks source link

fix(user-preference-currency-display): remove unused prop ethLogoHeight #24517

Open legobeat opened 2 weeks ago

legobeat commented 2 weeks ago

Description

Fixes console.error:

  Warning: React does not recognize the `ethLogoHeight` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `ethlogoheight` instead. If you accidentally passed it from a parent component, remove it from the DOM element.
      in div (created by ForwardRef)
      in ForwardRef (created by CurrencyDisplay)
      in CurrencyDisplay (created by UserPreferencedCurrencyDisplay)
      in UserPreferencedCurrencyDisplay (created by ConfirmTitle)
      in h3 (created by ForwardRef)
      in ForwardRef (created by ForwardRef)
      in ForwardRef (created by ConfirmTitle)
      in ConfirmTitle (created by ConfirmTransactionBase)
      in div (created by ConfirmPageContainerSummary)
      in div (created by ConfirmPageContainerSummary)
      in ConfirmPageContainerSummary (created by ConfirmPageContainerContent)
      in div (created by ConfirmPageContainerContent)
      in ConfirmPageContainerContent (created by ConfirmPageContainer)
      in div (created by ConfirmPageContainer)
      in GasFeeContextProvider (created by ConfirmPageContainer)
      in ConfirmPageContainer (created by ConfirmTransactionBase)
      in TransactionModalContextProvider (created by ConfirmTransactionBase)
      in ConfirmTransactionBase (created by ConnectFunction)
      in ConnectFunction (created by Context.Consumer)
      in withRouter(Connect(ConfirmTransactionBase)) (created by ConfirmSendEther)
      in ConfirmSendEther
      in LegacyMetaMetricsProvider (created by Wrapper)
      in LegacyI18nProvider (created by Wrapper)
      in I18nProvider (created by Wrapper)
      in Router (created by Wrapper)
      in Provider (created by Wrapper)
      in Wrapper

  71 |   const { history, Wrapper } = createProviderWrapper(store, pathname);
  72 |   return {
> 73 |     ...render(component, { wrapper: Wrapper }),
     |              ^
  74 |     history,
  75 |   };
  76 | }

Open in GitHub Codespaces

Related issues

Manual testing steps

Screenshots/Recordings

Before

After

Pre-merge author checklist

Pre-merge reviewer checklist

github-actions[bot] commented 2 weeks ago

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

codecov[bot] commented 1 week ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 65.70%. Comparing base (0dc23ab) to head (c84bbb5).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## develop #24517 +/- ## =========================================== - Coverage 65.70% 65.70% -0.00% =========================================== Files 1366 1366 Lines 54361 54361 Branches 14141 14141 =========================================== - Hits 35715 35714 -1 - Misses 18646 18647 +1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.