Localized country names.

This commit is contained in:
Mike Cao 2020-09-30 16:27:27 -07:00
parent e5cd162b83
commit fd69f0df24
22 changed files with 69 additions and 263 deletions

View file

@ -4,7 +4,7 @@ import { getItem, setItem } from 'lib/web';
import { THEME_CONFIG } from 'lib/constants';
import { useEffect } from 'react';
export default function useLocale() {
export default function useTheme() {
const theme = useSelector(state => state.app.theme || getItem(THEME_CONFIG) || 'light');
const dispatch = useDispatch();