From 903cc41d5882f4d7cfa42c96c6d05762bc2179de Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Fri, 10 Feb 2023 15:57:21 -0800 Subject: [PATCH] Remove htmlcomment as it gets stripped in build time --- web/components/common/HtmlComment/HtmlComment.tsx | 4 ---- web/pages/_document.tsx | 3 --- 2 files changed, 7 deletions(-) delete mode 100644 web/components/common/HtmlComment/HtmlComment.tsx diff --git a/web/components/common/HtmlComment/HtmlComment.tsx b/web/components/common/HtmlComment/HtmlComment.tsx deleted file mode 100644 index 060a7099f..000000000 --- a/web/components/common/HtmlComment/HtmlComment.tsx +++ /dev/null @@ -1,4 +0,0 @@ -/* eslint-disable react/no-danger */ -export const HtmlComment = ({ text }) => ( - ` }} /> -); diff --git a/web/pages/_document.tsx b/web/pages/_document.tsx index dcb01466e..456ecd17b 100644 --- a/web/pages/_document.tsx +++ b/web/pages/_document.tsx @@ -2,7 +2,6 @@ import { Html, Head, Main, NextScript } from 'next/document'; import { readFileSync } from 'fs'; import { join } from 'path'; -import { HtmlComment } from '../components/common/HtmlComment/HtmlComment'; class InlineStylesHead extends Head { getCssLinks: Head['getCssLinks'] = ({ allFiles }) => { @@ -30,8 +29,6 @@ export default function Document() {
- {'\n\n'} - );