How to use the grommet-controls/utils/moment.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 / grommet-nextjs / components / crypto / coins / PriceChart.js View on Github external
values={priceHistory.map((price, index) => ({
      value: [index, price.close],
      label: longDate(price.time),
    }))}
/>) : null);
github atanasster / grommet-nextjs / components / crypto / 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.last_updated) : '',
      },
      credits: {
        enabled: false,
      },
      plotOptions: {
        area: {
          marker: {
            enabled: false,
            symbol: 'circle',
            radius: 2,
            states: {
              hover: {
                enabled: true,
              },
            },
          },