UNPKG

generator-thundr-gae-react

Version:

Yeoman generator for a React app that runs atop Thundr on Google App Engine

14 lines (10 loc) 295 B
import React from 'react'; import PropTypes from 'prop-types'; import { FormattedTime } from 'react-intl'; const Time = ({ value }) => ( <FormattedTime timeZone="Australia/Sydney" value={value}/> ); Time.propTypes = { value: PropTypes.instanceOf(Date).isRequired, }; export default Time;