From a8c4f53922cfcad47c9e3b71a701b3ccff738cfe Mon Sep 17 00:00:00 2001 From: afc163 Date: Wed, 23 Nov 2016 20:24:36 +0800 Subject: [PATCH] remove unused code in demo --- components/locale-provider/demo/all.md | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/components/locale-provider/demo/all.md b/components/locale-provider/demo/all.md index 5210db2561..844668f288 100644 --- a/components/locale-provider/demo/all.md +++ b/components/locale-provider/demo/all.md @@ -36,12 +36,6 @@ const columns = [{ dataIndex: 'age', }]; -const customLocale = { - timezoneOffset: 8 * 60, - firstDayOfWeek: 1, - minimalDaysInFirstWeek: 1, -}; - const Page = React.createClass({ getInitialState() { return { @@ -127,10 +121,6 @@ const App = React.createClass({ } }, render() { - const locale = { ...this.state.locale }; - if (locale.DatePicker) { - locale.DatePicker = { ...locale.DatePicker, ...customLocale }; - } return (
@@ -140,7 +130,7 @@ const App = React.createClass({ 中文
- +
); },