chore(site): apply code conventions (#12316)

This commit is contained in:
Bruno Quaresma
2024-02-27 09:24:07 -03:00
committed by GitHub
parent 5a0d9db6c3
commit 2ca8248315
2 changed files with 4 additions and 2 deletions

View File

@ -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", {

View File

@ -87,7 +87,9 @@ export const BuildLogsDrawer: FC<BuildLogsDrawerProps> = ({
);
};
const MissingVariablesBanner: FC<{ onFillVariables: () => void }> = ({
type MissingVariablesBannerProps = { onFillVariables: () => void };
const MissingVariablesBanner: FC<MissingVariablesBannerProps> = ({
onFillVariables,
}) => {
return (