Dependencies updated & small enhancements (#27)
* Dependencies updated and imports shortened * Head tags refactored * Final tweaks
This commit is contained in:
@@ -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>
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user