Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /var/www/html/beximco/mrp/mrp/.cache/admin/src/components/Roles/ContentTypes/ drwxrwxrwx | |
| Viewing file: Select action/file-type: import React, { memo } from 'react';
import PropTypes from 'prop-types';
import { Padded } from '@buffetjs/core';
import ContentTypeCollapses from '../ContentTypeCollapses';
import GlobalActions from '../GlobalActions';
import Wrapper from './Wrapper';
const ContentTypes = ({ isFormDisabled, kind, layout: { actions, subjects } }) => {
return (
<Wrapper>
<Padded left right bottom size="md">
<GlobalActions actions={actions} kind={kind} isFormDisabled={isFormDisabled} />
<ContentTypeCollapses
actions={actions}
isFormDisabled={isFormDisabled}
pathToData={kind}
subjects={subjects}
/>
</Padded>
</Wrapper>
);
};
ContentTypes.propTypes = {
isFormDisabled: PropTypes.bool.isRequired,
kind: PropTypes.string.isRequired,
layout: PropTypes.shape({
actions: PropTypes.array,
subjects: PropTypes.arrayOf(
PropTypes.shape({
uid: PropTypes.string.isRequired,
label: PropTypes.string.isRequired,
properties: PropTypes.array.isRequired,
})
),
}).isRequired,
};
export default memo(ContentTypes);
|
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0077 ]-- |