Sha256: caebcf4dc0e812e0e4fc4fcda1f704c4bfbc17fbaf1c759de6ec214930b1e2ef

Contents?: true

Size: 281 Bytes

Versions: 103

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

103 entries across 103 versions & 1 rubygems

Version Path
foreman_ansible-7.0.1 webpack/components/AnsibleRolesSwitcher/components/withProtectedView.js
foreman_ansible-7.0.0 webpack/components/AnsibleRolesSwitcher/components/withProtectedView.js
foreman_ansible-6.3.4 webpack/components/AnsibleRolesSwitcher/components/withProtectedView.js
foreman_ansible-6.3.3 webpack/components/AnsibleRolesSwitcher/components/withProtectedView.js
foreman_ansible-6.3.2 webpack/components/AnsibleRolesSwitcher/components/withProtectedView.js
foreman_ansible-6.3.1 webpack/components/AnsibleRolesSwitcher/components/withProtectedView.js
foreman_ansible-6.4.1 webpack/components/AnsibleRolesSwitcher/components/withProtectedView.js
foreman_ansible-6.4.0 webpack/components/AnsibleRolesSwitcher/components/withProtectedView.js
foreman_ansible-6.3.0 webpack/components/AnsibleRolesSwitcher/components/withProtectedView.js
foreman_ansible-6.2.0 webpack/components/AnsibleRolesSwitcher/components/withProtectedView.js
foreman_ansible-6.1.1 webpack/components/AnsibleRolesSwitcher/components/withProtectedView.js
foreman_ansible-6.0.2 webpack/components/AnsibleRolesSwitcher/components/withProtectedView.js
foreman_ansible-6.1.0 webpack/components/AnsibleRolesSwitcher/components/withProtectedView.js
foreman_ansible-6.0.1 webpack/components/AnsibleRolesSwitcher/components/withProtectedView.js
foreman_ansible-5.1.3 webpack/components/AnsibleRolesSwitcher/components/withProtectedView.js
foreman_ansible-6.0.0 webpack/components/AnsibleRolesSwitcher/components/withProtectedView.js
foreman_ansible-5.1.2 webpack/components/AnsibleRolesSwitcher/components/withProtectedView.js
foreman_ansible-5.1.1 webpack/components/AnsibleRolesSwitcher/components/withProtectedView.js
foreman_ansible-5.1.0 webpack/components/AnsibleRolesSwitcher/components/withProtectedView.js
foreman_ansible-4.0.3.5 webpack/components/AnsibleRolesSwitcher/components/withProtectedView.js