saleor-dashboard/src/hooks/useTheme.ts
Krzysztof Wolski a82de30309
Add circleci config and enhance our linters (#519)
* Add circleci config

* Season linting config

* Apply code style
2020-05-14 11:30:32 +02:00

8 lines
209 B
TypeScript

import { ThemeContext } from "@saleor/components/Theme";
import { useContext } from "react";
function useTheme() {
const themeInfo = useContext(ThemeContext);
return themeInfo;
}
export default useTheme;