Merge pull request #14162 from strapi/custom-fields/remove-map-cf

[Custom fields] remove map cf
This commit is contained in:
markkaylor 2022-08-22 17:18:11 +02:00 committed by GitHub
commit d84d954e43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,25 +5,7 @@ import ColorPickerIcon from './components/ColorPicker/ColorPickerIcon';
export default { export default {
register(app) { register(app) {
app.customFields.register([ app.customFields.register({
{
name: 'map',
pluginId: 'mycustomfields',
type: 'json',
intlLabel: {
id: 'mycustomfields.map.label',
defaultMessage: 'Map',
},
intlDescription: {
id: 'mycustomfields.map.description',
defaultMessage: 'Select any location',
},
components: {
Input: async () =>
import(/* webpackChunkName: "input-component" */ './components/Map/MapInput'),
},
},
{
name: 'color', name: 'color',
pluginId: 'mycustomfields', pluginId: 'mycustomfields',
type: 'string', type: 'string',
@ -128,8 +110,7 @@ export default {
}), }),
}), }),
}, },
}, });
]);
}, },
bootstrap(app) {}, bootstrap(app) {},
async registerTrads({ locales }) { async registerTrads({ locales }) {