move theme props from <SourcegraphWebApp> to useTheme hook
Created by: sqs
Previously, the theme code was scattered in the SourcegraphWebApp class component. Now, it's in a single React hook useTheme
. Also, there are tests.
This is just a code refactor; there is no (intended) user-visible change.