mirror of
https://github.com/strapi/strapi.git
synced 2025-11-02 19:04:38 +00:00
Move cm link in the menu
Signed-off-by: soupette <cyril.lpz@gmail.com>
This commit is contained in:
parent
4dc122664f
commit
d2b2ea50f0
@ -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);
|
||||
|
||||
@ -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>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user