Skip to content

Commit

Permalink
docs(Datetime): cleanup default props and styles
Browse files Browse the repository at this point in the history
  • Loading branch information
levithomason committed Oct 19, 2017
1 parent a7902d2 commit ebf33a6
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 728 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ const timeFormatter = date => date.toLocaleTimeString(locale, { hour12: true }).
const DatetimeExampleFormatters = () => (
<Datetime
time
defaultValue={new Date()}
dateFormatter={dateFormatter}
timeFormatter={timeFormatter}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ const Time24HourExample = () => (
time
icon='time'
date={false}
defaultValue={new Date()}
onDateChange={(e, { value }) => {
console.log('Date selected: ', value)
}}
hourFormatter={(date) => {
const options = { hour12: false }
return date.toLocaleTimeString('en-US', options).substr(0, 5)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@ import React from 'react'
import { Datetime } from 'semantic-ui-react'

const DatetimeExampleDateOnly = () => (
<Datetime
time={false}
defaultValue={new Date('2017-04-24')}
placeholder='Select Date'
/>
<Datetime time={false} placeholder='Select Date' />
)

export default DatetimeExampleDateOnly
Loading

0 comments on commit ebf33a6

Please sign in to comment.