antd-theme icon indicating copy to clipboard operation
antd-theme copied to clipboard

No variables when using only "default" theme

Open donwojtallo opened this issue 4 years ago • 0 comments

If I provide in themes only the default one (or if I do not provide any theme) I get this object from useTheme():

{
  name: "default"
  themes: [
    name: "default"
    variables: {}
  ]
}

Please note that there are no variables. If I add any other theme the problem disappears (the variables are populated). Maybe using this lib with just one theme is not really useful, but I think this could be supported just for consistency.

donwojtallo avatar Nov 03 '20 17:11 donwojtallo