New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

empower-custom-infocomponent

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

empower-custom-infocomponent

In the project directory, you can run:

  • 0.1.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-87.5%
Maintainers
1
Weekly downloads
 
Created
Source

Available Scripts

In the project directory, you can run:

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

Property

A list of property that may pass and use for the component.

  • Icon - can be SVG or HTML tag
  • Title - can be String or HTML tag
  • Content - can be String or HTML tag
  • SubContent - can be String or HTML tag
  • Remarks - String only
  • Attachment - Array only and the object inside should have a 'filename' key
  • TimeStamp - can be String or HTML tag
  • History - Array only and the object can have this set of key
  • GetActions - Function to get the action from the component

Installation

npm install empower-custom-infocomponent

Usage

import InfoComponent from 'empower-custom-infocomponent';

let sampleData = {
    icon: SVG_REQUEST,
    title: 'REQUEST DETAILS',
    content: '(CONTENT) Lorem ipsum dolor sit amet, consectetur adipiscing elit.',
    subContent: '(SUBCONTENT) Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco.',
    remarks: '(REMARKS) Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum',
    attachment: [{ filename: "sample1.jpg"}, { filename: "sample2.jpg"}],
    timestamp: 'Tue, 12 Oct 2021 at 11:24 AM',
    history: [
    {
        status: 'APPROVED',
        content: 'CONTENT',
        subContent: 'SUBCONTENT',
        remarks: 'REMARKS',
        attachment: [{ filename: "sample1.jpg"}, { filename: "sample2.jpg"}],
        timestamp: 'TIMESTAMP',
    }
    ]
}

const getActions = (action, data) => {
    console.log(action, data)
}

return <div>
    <InfoComponent 
    {...sampleData} 
    getActions={(action, data) => getActions(action, data)}
    />
</div>

FAQs

Package last updated on 22 Nov 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc