diff --git a/packages/drupal/gutenberg_blocks/src/index.ts b/packages/drupal/gutenberg_blocks/src/index.ts index 09d0dc458..838423ca5 100644 --- a/packages/drupal/gutenberg_blocks/src/index.ts +++ b/packages/drupal/gutenberg_blocks/src/index.ts @@ -9,5 +9,5 @@ import './blocks/image-with-text'; import './filters/list'; import './blocks/cta'; import './blocks/quote'; -import './blocks/info-grid' -import './blocks/info-grid-item' +import './blocks/info-grid'; +import './blocks/info-grid-item'; diff --git a/packages/drupal/gutenberg_blocks/src/utils/icon-list.ts b/packages/drupal/gutenberg_blocks/src/utils/icon-list.ts index 5345c865f..19f2a04b3 100644 --- a/packages/drupal/gutenberg_blocks/src/utils/icon-list.ts +++ b/packages/drupal/gutenberg_blocks/src/utils/icon-list.ts @@ -1,26 +1,26 @@ // @ts-ignore const { t: __ } = Drupal; -const ICON_PATH = "/modules/custom/gutenberg_blocks/images/icons/"; +const ICON_PATH = '/modules/custom/gutenberg_blocks/images/icons/'; // Icon list options -export const iconListOptions: { label: any, value: string }[] = [ - { label: __("Select an icon"), value: "" }, - { label: __("Email"), value: "EMAIL" }, - { label: __("Telephone"), value: "PHONE" }, - { label: __("Life Ring"), value: "LIFE-RING" } +export const iconListOptions: { label: any; value: string }[] = [ + { label: __('Select an icon'), value: '' }, + { label: __('Email'), value: 'EMAIL' }, + { label: __('Telephone'), value: 'PHONE' }, + { label: __('Life Ring'), value: 'LIFE-RING' }, ]; // Icon image preview export const iconImagePreview = (icon: string) => { switch (icon) { - case "EMAIL": - return ICON_PATH + "email.svg"; - case "PHONE": - return ICON_PATH + "phone.svg"; - case "LIFE-RING": - return ICON_PATH + "life-ring.svg"; + case 'EMAIL': + return ICON_PATH + 'email.svg'; + case 'PHONE': + return ICON_PATH + 'phone.svg'; + case 'LIFE-RING': + return ICON_PATH + 'life-ring.svg'; default: - return ""; + return ''; } -} +}; diff --git a/packages/schema/src/schema.graphql b/packages/schema/src/schema.graphql index 4a9bc9c42..387c77d17 100644 --- a/packages/schema/src/schema.graphql +++ b/packages/schema/src/schema.graphql @@ -199,7 +199,7 @@ type Hero { } union PageContent @resolveEditorBlockType = - BlockMarkup + | BlockMarkup | BlockMedia | BlockForm | BlockImageTeasers