Date formatting using locale.

This commit is contained in:
Mike Cao 2020-09-07 19:48:40 -07:00
parent 987fdfd57d
commit ff854150ae
7 changed files with 48 additions and 36 deletions

View file

@ -2,17 +2,11 @@ import React, { useEffect } from 'react';
import { IntlProvider } from 'react-intl';
import { Provider, useDispatch, useSelector } from 'react-redux';
import { useStore } from 'redux/store';
import { updateApp } from 'redux/actions/app';
import { messages } from 'lib/lang';
import 'styles/variables.css';
import 'styles/bootstrap-grid.css';
import 'styles/index.css';
import en from 'lang-compiled/en.json';
import cn from 'lang-compiled/zh-CN.json';
import { updateApp } from '../redux/actions/app';
const messages = {
en,
'zh-CN': cn,
};
const Intl = ({ children }) => {
const dispatch = useDispatch();