From 9cc7b1cf2d8174e96d76a4c77e0ae9b803831cb1 Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Wed, 11 Jan 2023 18:26:54 -0800 Subject: [PATCH] Add a little comment for those viewing HTML source that we could use contributors --- web/components/common/HtmlComment/HtmlComment.tsx | 4 ++++ web/pages/_document.tsx | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 web/components/common/HtmlComment/HtmlComment.tsx diff --git a/web/components/common/HtmlComment/HtmlComment.tsx b/web/components/common/HtmlComment/HtmlComment.tsx new file mode 100644 index 000000000..4dc6cb5e3 --- /dev/null +++ b/web/components/common/HtmlComment/HtmlComment.tsx @@ -0,0 +1,4 @@ +/* eslint-disable react/no-danger */ +export const HtmlComment = ({ text }) => ( +
` }} /> +); diff --git a/web/pages/_document.tsx b/web/pages/_document.tsx index 80069e99d..32e1e02dc 100644 --- a/web/pages/_document.tsx +++ b/web/pages/_document.tsx @@ -1,8 +1,8 @@ /* eslint-disable react/no-danger */ 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 }) => { @@ -26,6 +26,7 @@ class InlineStylesHead extends Head { export default function Document() { return ( +