Socket
Book a DemoInstallSign in
Socket

@ied/mission

Package Overview
Dependencies
Maintainers
7
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ied/mission

## Install

latest
npmnpm
Version
1.0.0-beta.0
Version published
Maintainers
7
Created
Source

Mission

Install

yarn add @ied/mission

Add this to your index.html

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

Use

import Mission from '@ied/mission'

<Mission
  label="Bookkeeping with Monthly VAT declaration"
  company={{ label: 'DEM-DK-TEST', action: console.log }}
  tag={{ label: 'Bookkeeping', action: console.log }}
  date={new Date()}
  lastUpdate={date}
  completed={{ done: 10, total: 30 }}
  actions={[{ icon: 'file_download', onClick: console.log }]}
/>
// or
<Mission
  label="Payroll with Monthly VAT declaration"
  date={new Date()}
  tag={{ label: 'Payroll', action: console.log }}
  information={{ tasks: 20, monthly: 2, events: 10 }}
  description="Lorem ipsum dolor sit amet, consectetur adipisicing elit. Dignissimos vel repellat quasi veritatis dolore, incidunt provident magnam possimus consequatur excepturi, facilis ducimus vero obcaecati saepe deleniti tempore nostrum mollitia cum."
/>

Types

type Props = {
  label: string,
  company?: { label: string, action: () => void },
  tag?: { label: string, action: () => void },
  description?: string,
  date: string | Date,
  lastUpdate?: string | Date,
  completed?: { done: number, total: number },
  information?: { tasks: number, monthly: number, events: number },
  locale?: 'en' | 'fr' | 'da' | 'de',
  actions?: { icon: string, onClick?: Event => void }[],
}

FAQs

Package last updated on 28 Feb 2018

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