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-12.0.5 webpack/components/AnsibleRolesSwitcher/components/withProtectedView.js
foreman_ansible-10.4.3 webpack/components/AnsibleRolesSwitcher/components/withProtectedView.js
foreman_ansible-12.0.4 webpack/components/AnsibleRolesSwitcher/components/withProtectedView.js
foreman_ansible-10.4.2 webpack/components/AnsibleRolesSwitcher/components/withProtectedView.js
foreman_ansible-12.0.3 webpack/components/AnsibleRolesSwitcher/components/withProtectedView.js
foreman_ansible-12.0.2 webpack/components/AnsibleRolesSwitcher/components/withProtectedView.js
foreman_ansible-12.0.1 webpack/components/AnsibleRolesSwitcher/components/withProtectedView.js
foreman_ansible-12.0.0 webpack/components/AnsibleRolesSwitcher/components/withProtectedView.js
foreman_ansible-11.2.1 webpack/components/AnsibleRolesSwitcher/components/withProtectedView.js
foreman_ansible-7.1.7 webpack/components/AnsibleRolesSwitcher/components/withProtectedView.js
foreman_ansible-11.2.0 webpack/components/AnsibleRolesSwitcher/components/withProtectedView.js
foreman_ansible-11.1.2 webpack/components/AnsibleRolesSwitcher/components/withProtectedView.js
foreman_ansible-7.1.6 webpack/components/AnsibleRolesSwitcher/components/withProtectedView.js
foreman_ansible-11.1.1 webpack/components/AnsibleRolesSwitcher/components/withProtectedView.js
foreman_ansible-10.4.1 webpack/components/AnsibleRolesSwitcher/components/withProtectedView.js
foreman_ansible-7.1.5 webpack/components/AnsibleRolesSwitcher/components/withProtectedView.js
foreman_ansible-11.1.0 webpack/components/AnsibleRolesSwitcher/components/withProtectedView.js
foreman_ansible-10.4.0 webpack/components/AnsibleRolesSwitcher/components/withProtectedView.js
foreman_ansible-10.3.0 webpack/components/AnsibleRolesSwitcher/components/withProtectedView.js
foreman_ansible-11.0.0 webpack/components/AnsibleRolesSwitcher/components/withProtectedView.js