Display layout button in prod mode

This commit is contained in:
soupette 2019-12-06 09:17:10 +01:00
parent 2b85c97c0e
commit dc9dd4ccfd

View File

@ -261,22 +261,16 @@ const ListPage = () => {
// const listActions = isInDevelopmentMode ? [{ ...addButtonProps }] : [];
const configureButtonProps = {
icon: <LayoutIcon className="colored" />,
icon: <LayoutIcon className="colored" fill="#007eff" />,
color: 'secondary',
label: formatMessage({ id: `${pluginId}.form.button.configure-view` }),
onClick: goToCMSettingsPage,
style: { height: '30px' },
};
// const addButtonProps = {
// icon: true,
// color: 'primary',
// label: formatMessage({ id: `${pluginId}.button.attributes.add.another` }),
// onClick: handleClickAddAttributeMainData,
// };
const listActions = isInDevelopmentMode
? [{ ...configureButtonProps }, { ...addButtonProps }]
: [];
: [configureButtonProps];
const handleClickOnTrashIcon = () => {};