Sha256: c4c331d16b9a9ec4d58c0b8f3427ddfeeff3e561647a3e8557ae3a38722c6fbc

Contents?: true

Size: 864 Bytes

Versions: 116

Compression:

Stored size: 864 Bytes

Contents

import React from 'react'
import Timestamp from '../_timestamp.jsx'

const todaysDate = new Date()
const year = new Date().getFullYear() + 4
const month = new Date().getMonth()
const date = new Date().getDate()
const hours = new Date().getHours()
const minutes = new Date().getMinutes()
const customDate = new Date(year, month, date, hours, minutes)

const TimestampDefault = (props) => {
  return (
    <div>
      <Timestamp
          align="left"
          showDate={false}
          timestamp={todaysDate}
          {...props}
      />

      <br />

      <Timestamp
          align="left"
          showDate
          timestamp={todaysDate}
          {...props}
      />

      <br />

      <Timestamp
          align="left"
          showDate
          timestamp={customDate}
          {...props}
      />
    </div>
  )
}

export default TimestampDefault

Version data entries

116 entries across 116 versions & 1 rubygems

Version Path
playbook_ui-9.4.0 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_default.jsx
playbook_ui-9.3.1.pre.alpha2 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_default.jsx
playbook_ui-9.4.0.pre.alpha2 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_default.jsx
playbook_ui-9.4.0.pre.alpha1 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_default.jsx
playbook_ui-9.3.1.pre.alpha1 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_default.jsx
playbook_ui-9.3.0.alpha.inline3 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_default.jsx
playbook_ui-9.3.0.pre.alpha.password.strength.2 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_default.jsx
playbook_ui-9.3.0.alpha.inline2 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_default.jsx
playbook_ui-9.3.0.alpha.inline1 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_default.jsx
playbook_ui-9.3.0.pre.alpha.password.strength.1 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_default.jsx
playbook_ui-9.3.0 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_default.jsx
playbook_ui-9.2.2.pre.alpha.margin app/pb_kits/playbook/pb_timestamp/docs/_timestamp_default.jsx
playbook_ui-9.2.2 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_default.jsx
playbook_ui-9.2.1 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_default.jsx
playbook_ui-9.2.0 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_default.jsx
playbook_ui-9.1.0 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_default.jsx
playbook_ui-9.0.0 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_default.jsx
playbook_ui-8.3.0.alpha.select.pre.margin app/pb_kits/playbook/pb_timestamp/docs/_timestamp_default.jsx
playbook_ui-8.3.0 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_default.jsx
playbook_ui-8.2.1.pre.alpha5 app/pb_kits/playbook/pb_timestamp/docs/_timestamp_default.jsx