How to use the grommet-controls/utils.longDate function in grommet-controls

To help you get started, we’ve selected a few grommet-controls examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github atanasster / crypto-grommet / components / coins / OrderBookCard.js View on Github external
renderChart() {
    const { orderBook } = this.props;
    const { toSymbol } = this.props;
    const config = {
      chart: {
        type: 'area',
      },
      title: {
        text: orderBook ? longDate(orderBook.lastUpdated) : '',
      },
      credits: {
        enabled: false,
      },
      plotOptions: {
        area: {
          marker: {
            enabled: false,
            symbol: 'circle',
            radius: 2,
            states: {
              hover: {
                enabled: true,
              },
            },
          },
github atanasster / crypto-grommet / components / equities / PriceTableStream.js View on Github external
render() {
    const { priceStream, lastData } = this.state;
    let priceTable;
    if (priceStream) {
      const rows = [
        {
          label: 'Last sale ',
          value: (
            
              
            
          ),
        },
        {
          label: 'Prev sale ',
          value: (
            
              
              {' / '}