Skip to content

Commit

Permalink
fix(slb-306): pretty files
Browse files Browse the repository at this point in the history
  • Loading branch information
elistone committed May 8, 2024
1 parent f643a71 commit f544b78
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
4 changes: 2 additions & 2 deletions packages/drupal/gutenberg_blocks/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
28 changes: 14 additions & 14 deletions packages/drupal/gutenberg_blocks/src/utils/icon-list.ts
Original file line number Diff line number Diff line change
@@ -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 '';
}
}
};
2 changes: 1 addition & 1 deletion packages/schema/src/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ type Hero {
}

union PageContent @resolveEditorBlockType =
BlockMarkup
| BlockMarkup
| BlockMedia
| BlockForm
| BlockImageTeasers
Expand Down

0 comments on commit f544b78

Please sign in to comment.