Move cm link in the menu

Signed-off-by: soupette <cyril.lpz@gmail.com>
This commit is contained in:
soupette 2021-06-24 09:05:04 +02:00
parent 4dc122664f
commit d2b2ea50f0
2 changed files with 15 additions and 15 deletions

View File

@ -7,7 +7,6 @@ import configureStore from './core/store/configureStore';
import { Plugin } from './core/apis';
import App from './pages/App';
import Providers from './components/Providers';
import Theme from './components/Theme';
import languageNativeNames from './translations/languageNativeNames';
import {
@ -17,7 +16,6 @@ import {
MUTATE_SINGLE_TYPES_LINKS,
} from './exposedHooks';
import injectionZones from './injectionZones';
import adminPermissions from './permissions';
import themes from './themes';
window.strapi = {
@ -175,19 +173,6 @@ class StrapiApp {
}
bootstrapAdmin = async () => {
// TODO move link in menu
this.addCorePluginMenuLink({
// TODO
to: `/plugins/content-manager`,
icon: 'book-open',
intlLabel: {
id: `content-manager.plugin.name`,
defaultMessage: 'Content manager',
},
// permissions: pluginPermissions.main,
permissions: adminPermissions.contentManager.main,
});
this.createHook(INJECT_COLUMN_IN_TABLE);
this.createHook(MUTATE_COLLECTION_TYPES_LINKS);
this.createHook(MUTATE_SINGLE_TYPES_LINKS);

View File

@ -1,14 +1,29 @@
import React, { memo } from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
import { BaselineAlignment } from '@strapi/helper-plugin';
import { Footer, Header, LinksContainer, LinksSection, SectionTitle } from './compos';
import LeftMenuLink from './compos/Link';
import Wrapper from './Wrapper';
const LeftMenu = ({ generalSectionLinks, pluginsSectionLinks }) => {
return (
<Wrapper>
<Header />
<LinksContainer>
<BaselineAlignment top size="16px" />
<LeftMenuLink
to="/plugins/content-manager"
icon="book-open"
intlLabel={{
id: `content-manager.plugin.name`,
defaultMessage: 'Content manager',
}}
/>
<BaselineAlignment bottom size="2px" />
{pluginsSectionLinks.length > 0 && (
<>
<SectionTitle>