@ied/event

1.0.2 • Public • Published

Event

Install

 yarn add @ied/event

Requirement

If you use icon property add this to your index.html

<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">

Use

import Event from '@ied/event'

      <Event
        type="created"
        eventText={
          <p>
            <strong>Daffy Duck</strong> created the task Boom
          </p>
        }
        date="2019-11-13"
        locale="fr"
      />
      <Event
        type="updated"
        eventText={
          <p>
            <strong>E.T.</strong> updated the task Boom
          </p>
        }
        date="2019-09-23"
        locale="en"
      />
      <Event
        type="rejected"
        eventText={
          <p>
            <strong>Homer Simpson</strong> rejected a document
          </p>
        }
        date="2019-08-07"
        locale="da"
      />

Types

Props

type Props = {
  type: string,
  eventText: Node,
  date: Date | number | string,
  children?: Node,
  locale?: string,
}

List of event types

  • created
  • deleted
  • completed
  • uploaded
  • assigned
  • commented
  • updated
  • approved
  • rejected

Readme

Keywords

none

Package Sidebar

Install

npm i @ied/event

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

1.77 MB

Total Files

7

Last publish

Collaborators

  • vibbou
  • lfalorni