use React.StrictMode to show deprecated message

This commit is contained in:
afc163 2018-10-30 15:31:03 +08:00
parent d1e12f3045
commit f51feebe36

View File

@ -96,15 +96,17 @@ export default class Layout extends React.Component {
const { appLocale } = this.state;
return (
<IntlProvider locale={appLocale.locale} messages={appLocale.messages}>
<LocaleProvider locale={appLocale.locale === 'zh-CN' ? zhCN : null}>
<div className="page-wrapper">
<Header {...restProps} />
{children}
<Footer {...restProps} />
</div>
</LocaleProvider>
</IntlProvider>
<React.StrictMode>
<IntlProvider locale={appLocale.locale} messages={appLocale.messages}>
<LocaleProvider locale={appLocale.locale === 'zh-CN' ? zhCN : null}>
<div className="page-wrapper">
<Header {...restProps} />
{children}
<Footer {...restProps} />
</div>
</LocaleProvider>
</IntlProvider>
</React.StrictMode>
);
}
}