All files / src/components/AuthorisationErrorPage index.jsx

28.57% Statements 2/7
100% Branches 0/0
0% Functions 0/3
28.57% Lines 2/7
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23          1x                       1x          
import React from 'react';
import pure from 'recompose/pure';
import ErrorPage from 'components/ErrorPage';
import PropTypes from 'prop-types';
 
const AuthorisationErrorPage = (props) => {
  const parsedProps = Object.assign({}, props);
  parsedProps.config = Object.assign(
    {
      icon: () => 'lock',
      message: () => 'You have no permission to access this page.',
    },
    props.config);
 
  return <ErrorPage {...parsedProps} />;
};
 
AuthorisationErrorPage.propTypes = {
  config: PropTypes.object,
};
 
export default pure(AuthorisationErrorPage);