ic-setup-editor-react-resources

0.4.1 • Public • Published

Setup

Import

import { 
  ICSetupEditorResourcesProvider,
  icSetupEditorResourcesContext,
  CodeHelpResourcesBox,
} from 'ic-setup-editor-react-resources'

Setup provider

<ICSetupEditorResourcesProvider 
  projectId='60a809692e1d65000864ac4a'
  accessToken='88GI9Djg1chbbhNUVK7JHTORUIKdtIobcly98fPle1YhvboiYLlogUefeurn'
>
..
</ICSetupEditorResourcesProvider>

Context resources

const { customWebapps, webappTemplates } = useContext(icSetupEditorResourcesContext);

Helper usage

<CodeHelpResourcesBox
  currentContext={{
    itemsTypeKey: 'services',
    attribute: 'pipeline',
  }} 
/>

Dependents (0)

Package Sidebar

Install

npm i ic-setup-editor-react-resources

Weekly Downloads

3

Version

0.4.1

License

none

Unpacked Size

81.7 kB

Total Files

29

Last publish

Collaborators

  • ideascloud