squaredev-io/matte

Fix `createMatteTheme` expecting an argument

Opened this issue · 0 comments

The createMatteTheme utility is used to provide a MUI-based theme. It is the same as MUI's createTheme but it is extended to include theming for Nivo charts. The createMatteTheme expects an argument, but it should let the users pass none, in which case a default theme is used.

How to reproduce

  • In a TS project that uses Matte, try to create at theme:
    const theme = createMatteTheme();.
  • You will get the following warning:
    Expected 1 arguments, but got 0.ts(2554)

Acceptance criteria

You shouldn't get the warning when creating a theme like this, instead the default theme should be applied without warning.