Sha256: 772b4900d40d820022fb3e8dab70dc56a50404a34c823575e62fc04db900aab3

Contents?: true

Size: 631 Bytes

Versions: 5

Compression:

Stored size: 631 Bytes

Contents

import React from 'react';
import PropTypes from 'prop-types';
import { get } from 'lodash';
import { classify } from '../lib/util';

export default class DefaultComponentNotFound extends React.Component {

    static propTypes = {
        extension: PropTypes.shape({
            identifier: PropTypes.string,
        }),
    }

    render() {
        const identifier = get(this.props.extension, 'identifier', 'UnknownExtension');
        return (
            <div className="fancy-header">
                <h1>{classify(identifier)}.rootElement() did not return an element to render!</h1>
            </div>
        );
    }

}

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
hippo-fw-0.9.5 client/hippo/react/DefaultComponentNotFound.jsx
hippo-fw-0.9.4 client/hippo/react/DefaultComponentNotFound.jsx
hippo-fw-0.9.3 client/hippo/react/DefaultComponentNotFound.jsx
hippo-fw-0.9.2 client/hippo/react/DefaultComponentNotFound.jsx
hippo-fw-0.9.1 client/hippo/react/DefaultComponentNotFound.jsx