How to use the terra-base.injectIntl function in terra-base

To help you get started, we’ve selected a few terra-base examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github cerner / terra-core / packages / terra-menu / src / _MenuContent.jsx View on Github external
{items}
            
          
        
      
    );
  }
}


MenuContent.propTypes = propTypes;
MenuContent.defaultProps = defaultProps;
MenuContent.childContextTypes = childContextTypes;

export default injectIntl(MenuContent);
github cerner / terra-framework / packages / terra-application-layout / src / safe-routing / SafeRoutingProvider.jsx View on Github external
);
  }
}

SafeRoutingProvider.propTypes = {
  intl: intlShape,
  children: PropTypes.node,
  history: PropTypes.object,
};

const safeRoutingShape = PropTypes.shape({
  block: PropTypes.func,
  push: PropTypes.func,
});

export default withRouter(injectIntl(SafeRoutingProvider));
export { safeRoutingShape };

terra-base

The base component sets minimal global styles for an application.

Apache-2.0
Latest version published 2 months ago

Package Health Score

88 / 100
Full package analysis