Skip to content

Commit

Permalink
Add missing file
Browse files Browse the repository at this point in the history
  • Loading branch information
tiberiuichim committed Sep 26, 2022
1 parent b4f3880 commit 3dd7bbe
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 11 deletions.
12 changes: 1 addition & 11 deletions src/blocks/Listing/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,7 @@ export const ListingStylingSchemaEnhancer = ({ schema }) => {

export const BasicListingBlockStylesSchema = ({ intl, formData }) => {
const styleSchema = defaultStyleSchema({ intl, formData });
styleSchema.fieldsets[0].fields.push(
'theme',
'text_align',
// 'rounded',
// 'inverted',
);
styleSchema.fieldsets[0].fields.push('theme', 'text_align');

styleSchema.properties = {
...styleSchema.properties,
Expand All @@ -41,11 +36,6 @@ export const BasicListingBlockStylesSchema = ({ intl, formData }) => {
widget: 'style_text_align',
actions: ALIGN_VALUE_MAP,
},
// rounded: {
// title: intl.formatMessage(messages.Rounded),
// description: intl.formatMessage(messages.RoundedHelp),
// type: 'boolean',
// },
};

return styleSchema;
Expand Down
54 changes: 54 additions & 0 deletions src/messages.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
import { defineMessages } from 'react-intl';

const messages = defineMessages({
styling: {
id: 'Styling',
defaultMessage: 'Styling',
},
Type: {
id: 'Listing',
defaultMessage: 'Listing',
},
Theme: {
id: 'Theme',
defaultMessage: 'Theme',
},
ThemeHelp: {
id: 'Theme',
defaultMessage: 'Theme',
},
ThemeDefault: {
id: 'Default',
defaultMessage: 'Default',
},
ThemePrimary: {
id: 'Primary',
defaultMessage: 'Primary',
},
ThemeSecondary: {
id: 'Secondary',
defaultMessage: 'Secondary',
},
ThemeTertiary: {
id: 'Tertiary',
defaultMessage: 'Tertiary',
},
Rounded: {
id: 'Rounded',
defaultMessage: 'Rounded',
},
RoundedHelp: {
id: 'Rounded Image',
defaultMessage: 'Rounded Image',
},
Inverted: {
id: 'Inverted',
defaultMessage: 'Inverted',
},
InvertedHelp: {
id: 'InvertedHelp',
defaultMessage: 'Inverted theme',
},
});

export default messages;

0 comments on commit 3dd7bbe

Please sign in to comment.