From c4846b45b7cc527ba007d238b3bdcc8878116c89 Mon Sep 17 00:00:00 2001 From: BrunoQuaresma Date: Tue, 27 Feb 2024 12:17:27 +0000 Subject: [PATCH] chore(site): apply code conventions --- site/jest.setup.ts | 2 +- site/src/pages/CreateTemplatePage/BuildLogsDrawer.tsx | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/site/jest.setup.ts b/site/jest.setup.ts index c7c0e4f814ce8..6e1da6fb241dc 100644 --- a/site/jest.setup.ts +++ b/site/jest.setup.ts @@ -49,7 +49,7 @@ global.TextDecoder = TextDecoder as any; global.Blob = Blob as any; global.scrollTo = jest.fn(); -window.HTMLElement.prototype.scrollIntoView = function () {}; +window.HTMLElement.prototype.scrollIntoView = jest.fn(); // Polyfill the getRandomValues that is used on utils/random.ts Object.defineProperty(global.self, "crypto", { diff --git a/site/src/pages/CreateTemplatePage/BuildLogsDrawer.tsx b/site/src/pages/CreateTemplatePage/BuildLogsDrawer.tsx index 65283b640bae0..19a5fe572fddc 100644 --- a/site/src/pages/CreateTemplatePage/BuildLogsDrawer.tsx +++ b/site/src/pages/CreateTemplatePage/BuildLogsDrawer.tsx @@ -87,7 +87,9 @@ export const BuildLogsDrawer: FC = ({ ); }; -const MissingVariablesBanner: FC<{ onFillVariables: () => void }> = ({ +type MissingVariablesBannerProps = { onFillVariables: () => void }; + +const MissingVariablesBanner: FC = ({ onFillVariables, }) => { return (