ArdanaLabs / DanaSwapUI

Other
3 stars 3 forks source link

Move theme to a Enum #30

Closed toastal closed 2 years ago

toastal commented 2 years ago

Currently there's a boolean in the state for something like isDarkTheme. I think we should be using a Enum like type Theme = Light | Dark so that it can be extended in the future for additional themes, the default can easily be reset, it will just read nicer being explicit (isDark, does this necessarily imply an isLight?).

toastal commented 2 years ago

Closed with #50