Sha256: caebcf4dc0e812e0e4fc4fcda1f704c4bfbc17fbaf1c759de6ec214930b1e2ef

Contents?: true

Size: 281 Bytes

Versions: 99

Compression:

Stored size: 281 Bytes

Contents

import React from 'react';

const withProtectedView = (
  ProtectedComponent,
  ProtectionComponent,
  protectionFn
) => props =>
  protectionFn(props) ? (
    <ProtectedComponent {...props} />
  ) : (
    <ProtectionComponent {...props} />
  );

export default withProtectedView;

Version data entries

99 entries across 99 versions & 1 rubygems

Version Path
foreman_ansible-15.0.2 webpack/components/AnsibleRolesSwitcher/components/withProtectedView.js
foreman_ansible-15.0.1 webpack/components/AnsibleRolesSwitcher/components/withProtectedView.js
foreman_ansible-15.0.0 webpack/components/AnsibleRolesSwitcher/components/withProtectedView.js
foreman_ansible-14.2.2 webpack/components/AnsibleRolesSwitcher/components/withProtectedView.js
foreman_ansible-14.2.1 webpack/components/AnsibleRolesSwitcher/components/withProtectedView.js
foreman_ansible-13.0.7 webpack/components/AnsibleRolesSwitcher/components/withProtectedView.js
foreman_ansible-14.2.0 webpack/components/AnsibleRolesSwitcher/components/withProtectedView.js
foreman_ansible-14.1.1 webpack/components/AnsibleRolesSwitcher/components/withProtectedView.js
foreman_ansible-14.1.0 webpack/components/AnsibleRolesSwitcher/components/withProtectedView.js
foreman_ansible-13.0.5 webpack/components/AnsibleRolesSwitcher/components/withProtectedView.js
foreman_ansible-14.0.0 webpack/components/AnsibleRolesSwitcher/components/withProtectedView.js
foreman_ansible-13.0.4 webpack/components/AnsibleRolesSwitcher/components/withProtectedView.js
foreman_ansible-13.0.3 webpack/components/AnsibleRolesSwitcher/components/withProtectedView.js
foreman_ansible-13.0.2 webpack/components/AnsibleRolesSwitcher/components/withProtectedView.js
foreman_ansible-13.0.1 webpack/components/AnsibleRolesSwitcher/components/withProtectedView.js
foreman_ansible-13.0.0 webpack/components/AnsibleRolesSwitcher/components/withProtectedView.js
foreman_ansible-12.0.7 webpack/components/AnsibleRolesSwitcher/components/withProtectedView.js
foreman_ansible-10.4.4 webpack/components/AnsibleRolesSwitcher/components/withProtectedView.js
foreman_ansible-7.1.8 webpack/components/AnsibleRolesSwitcher/components/withProtectedView.js
foreman_ansible-12.0.6 webpack/components/AnsibleRolesSwitcher/components/withProtectedView.js