Skip to content

Commit

Permalink
WIP But Icon import working now
Browse files Browse the repository at this point in the history
  • Loading branch information
ifahrentholz committed Feb 5, 2024
1 parent 9d7857c commit 65a2df2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dist/features/features.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/features/features.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions src/blocks/features/features.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { html, render } from 'lit';
import { unsafeHTML } from 'lit-html/directives/unsafe-html.js';

// @ts-ignore
import { Icon } from '../../components/icon';
import '../../components/icon';

interface Feature {
icon: string;
Expand All @@ -25,7 +24,6 @@ const template = (features: TemplateArgs) => {
};

export default function (block: HTMLElement) {
new Icon();
const rows = block.querySelectorAll(':scope > div');
let features: Feature[] = [];
[...rows].forEach((row) => {
Expand Down
1 change: 1 addition & 0 deletions types/blocks/features/features.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
import '../../components/icon';
export default function (block: HTMLElement): void;

0 comments on commit 65a2df2

Please sign in to comment.