1.0.7 • Published 2 years ago

enducomp v1.0.7

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

@e2e-cxs/components User Guide

Commands

To use inside a project please install the package first:

  npm install @e2e-cxs/components

To use the component inside project:

  import { ErrorPage } from '@e2e-cxs/components'

props to pass to the component

  • errorCode - this might be (404, 500, 401 or 404) - should be string value
  • applicationKey - this the current application key used to access - should be string value
  • gatewayUrl - get the current env variable and pass it to the component - should be string value

If those props value are ready then pass to the error component to render the value

  <ErrorPage errorCode={errorCode} applicationKey={applicationKey} gatewayUrl={gatewayUrl}/>

Note: If image is available the component will render the image and the message. If not will show generic error message for authorization related issue and not found page.