canopy icon indicating copy to clipboard operation
canopy copied to clipboard

[BUG] JsonView does not inherit theme values

Open TheFeloniousMonk opened this issue 1 year ago • 1 comments

Describe the bug

Because JsonView is instantiated with a style argument, it does not natively inherit theme changes.

Steps to reproduce

  • Go to wallet and enable dark mode
  • Refresh the page
  • Go to accounts tab and submit a transaction and observe the json

Expected behavior

JsonView should be instantiated with the currently set theme selection.

Screenshots

Image

Environment

  • Browser: Chrome

Additional context

JsonView has importable themes and requires a style argument when instantiated:

import { lightTheme } from '@uiw/react-json-view/light'; import { darkTheme } from '@uiw/react-json-view/dark';

<JsonView value={object} style={darkTheme} /> <JsonView value={object} style={lightTheme} />

Required Tags

  • Priority: Low
  • Module: Wallet

TheFeloniousMonk avatar Feb 14 '25 16:02 TheFeloniousMonk

@andrewnguyen22 this can be closed.

TheFeloniousMonk avatar Mar 15 '25 19:03 TheFeloniousMonk