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-4.0.5 webpack/components/AnsibleRolesSwitcher/components/withProtectedView.js
foreman_ansible-4.0.3.1 webpack/components/AnsibleRolesSwitcher/components/withProtectedView.js
foreman_ansible-4.0.4 webpack/components/AnsibleRolesSwitcher/components/withProtectedView.js
foreman_ansible-5.0.0 webpack/components/AnsibleRolesSwitcher/components/withProtectedView.js
foreman_ansible-4.0.3 webpack/components/AnsibleRolesSwitcher/components/withProtectedView.js
foreman_ansible-4.0.2 webpack/components/AnsibleRolesSwitcher/components/withProtectedView.js
foreman_ansible-4.0.0 webpack/components/AnsibleRolesSwitcher/components/withProtectedView.js
foreman_ansible-3.0.9 webpack/components/AnsibleRolesSwitcher/components/withProtectedView.js
foreman_ansible-3.0.8 webpack/components/AnsibleRolesSwitcher/components/withProtectedView.js
foreman_ansible-3.0.7 webpack/components/AnsibleRolesSwitcher/components/withProtectedView.js
foreman_ansible-3.0.6 webpack/components/AnsibleRolesSwitcher/components/withProtectedView.js
foreman_ansible-3.0.5 webpack/components/AnsibleRolesSwitcher/components/withProtectedView.js
foreman_ansible-3.0.4 webpack/components/AnsibleRolesSwitcher/components/withProtectedView.js
foreman_ansible-3.0.3 webpack/components/AnsibleRolesSwitcher/components/withProtectedView.js
foreman_ansible-2.3.4 webpack/components/AnsibleRolesSwitcher/components/withProtectedView.js
foreman_ansible-3.0.2 webpack/components/AnsibleRolesSwitcher/components/withProtectedView.js
foreman_ansible-3.0.1 webpack/components/AnsibleRolesSwitcher/components/withProtectedView.js
foreman_ansible-3.0.0 webpack/components/AnsibleRolesSwitcher/components/withProtectedView.js
foreman_ansible-2.3.3 webpack/components/AnsibleRolesSwitcher/components/withProtectedView.js