Skip to content

Commit daa0fc3

Browse files
committed
Update examples for locales
1 parent 22fd8e1 commit daa0fc3

File tree

3 files changed

+7
-50
lines changed

3 files changed

+7
-50
lines changed

docs-site/src/example_components.jsx

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,13 @@ import CustomDateFormat from "./examples/custom_date_format";
88
import CustomClassName from "./examples/custom_class_name";
99
import PlaceholderText from "./examples/placeholder_text";
1010
import SpecificDateRange from "./examples/specific_date_range";
11-
import CustomStartDate from "./examples/custom_start_date";
11+
import Locale from "./examples/locale";
1212
import ExcludeDates from "./examples/exclude_dates";
1313
import IncludeDates from "./examples/include_dates";
1414
import FilterDates from "./examples/filter_dates";
1515
import Disabled from "./examples/disabled";
1616
import ClearInput from "./examples/clear_input";
1717
import OnBlurCallbacks from "./examples/on_blur_callbacks";
18-
import Weekdays from "./examples/weekdays";
1918
import Placement from "./examples/placement";
2019
import DateRange from "./examples/date_range";
2120
import TabIndex from "./examples/tab_index";
@@ -65,8 +64,8 @@ export default React.createClass({
6564
component: <SpecificDateRange />
6665
},
6766
{
68-
title: "Custom week start day",
69-
component: <CustomStartDate />
67+
title: "Locale",
68+
component: <Locale />
7069
},
7170
{
7271
title: "Exclude dates",
@@ -96,10 +95,6 @@ export default React.createClass({
9695
title: "onBlur callbacks in console",
9796
component: <OnBlurCallbacks />
9897
},
99-
{
100-
title: "Custom weekdays",
101-
component: <Weekdays />
102-
},
10398
{
10499
title: "Configure Popover Placement",
105100
component: <Placement />

docs-site/src/examples/custom_start_date.jsx renamed to docs-site/src/examples/locale.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,16 @@ export default React.createClass({
2424
{"<DatePicker"}<br />
2525
    {"selected={this.state.startDate}"}<br />
2626
    {"onChange={this.handleChange}"}<br />
27-
<strong>    {"weekStart='0'"}</strong><br />
28-
    {"placeholderText='I start on Sunday!' />"}
27+
<strong>    {"locale='en-gb'"}</strong><br />
28+
    {"placeholderText='Weeks start on Monday' />"}
2929
</code>
3030
</pre>
3131
<div className="column">
3232
<DatePicker
3333
selected={this.state.startDate}
3434
onChange={this.handleChange}
35-
weekStart="0"
36-
placeholderText="I start on Sunday!" />
35+
locale="en-gb"
36+
placeholderText="Weeks start on Monday" />
3737
</div>
3838
</div>;
3939
}

docs-site/src/examples/weekdays.jsx

Lines changed: 0 additions & 38 deletions
This file was deleted.

0 commit comments

Comments
 (0)