Dependencies updated & small enhancements (#27)

* Dependencies updated and imports shortened

* Head tags refactored

* Final tweaks
This commit is contained in:
David
2021-06-12 22:44:56 +02:00
committed by GitHub
parent 030de63b2a
commit bdaced0457
29 changed files with 2523 additions and 3373 deletions

View File

@@ -1,7 +1,8 @@
import { FC, ReactElement } from "react";
import { render, RenderOptions } from "@testing-library/react";
import { ChakraProvider } from "@chakra-ui/react";
import theme from "../theme";
import theme from "@theme";
import { Layout } from "@components";
// Jest JSDOM bug
Object.defineProperty(window, 'matchMedia', {
@@ -20,7 +21,9 @@ Object.defineProperty(window, 'matchMedia', {
const Providers: FC = ({ children }) => (
<ChakraProvider theme={theme}>
{children}
<Layout>
{children}
</Layout>
</ChakraProvider>
);