Socket
Book a DemoInstallSign in
Socket

@ied/event

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ied/event

## Install

latest
npmnpm
Version
1.0.2
Version published
Maintainers
2
Created
Source

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

FAQs

Package last updated on 06 Jul 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts