summaryrefslogtreecommitdiff
path: root/packages/integrations/preact/src/static-html.ts
diff options
context:
space:
mode:
authorGravatar matthewp <matthewp@users.noreply.github.com> 2022-09-21 19:23:58 +0000
committerGravatar fredkbot <fred+astrobot@astro.build> 2022-09-21 19:23:58 +0000
commite3c78c5b164c338389c437743ba02a7be64e27fb (patch)
treeb3cda2b42b755c1f7c1809f937a7d8ca5e54b869 /packages/integrations/preact/src/static-html.ts
parent5e46be54683592773e6dfc2d33825493886114b0 (diff)
downloadastro-e3c78c5b164c338389c437743ba02a7be64e27fb.tar.gz
astro-e3c78c5b164c338389c437743ba02a7be64e27fb.tar.zst
astro-e3c78c5b164c338389c437743ba02a7be64e27fb.zip
[ci] format
Diffstat (limited to 'packages/integrations/preact/src/static-html.ts')
-rw-r--r--packages/integrations/preact/src/static-html.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/integrations/preact/src/static-html.ts b/packages/integrations/preact/src/static-html.ts
index e474caa5a..e1127d226 100644
--- a/packages/integrations/preact/src/static-html.ts
+++ b/packages/integrations/preact/src/static-html.ts
@@ -7,7 +7,7 @@ import { h } from 'preact';
* As a bonus, we can signal to Preact that this subtree is
* entirely static and will never change via `shouldComponentUpdate`.
*/
-const StaticHtml = ({ value, name }: { value: string; name?: string; }) => {
+const StaticHtml = ({ value, name }: { value: string; name?: string }) => {
if (!value) return null;
return h('astro-slot', { name, dangerouslySetInnerHTML: { __html: value } });
};