@ied/event
v1.0.2
Published
## Install
Downloads
7
Readme
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