enduthemepack
v1.0.12
Published
CXS Reusable Components
Downloads
1
Readme
@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 valueapplicationKey
- this the current application key used to access - should be string valuegatewayUrl
- 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.