refactor: Move depths and breakpoints out of theme

This commit is contained in:
Tom Moor
2022-04-04 21:20:38 -07:00
parent 20a69b711a
commit 2e41ace386
25 changed files with 73 additions and 79 deletions

View File

@@ -1,6 +1,7 @@
import { observer } from "mobx-react";
import * as React from "react";
import styled from "styled-components";
import { depths } from "@shared/styles";
import Toast from "~/components/Toast";
import useStores from "~/hooks/useStores";
import { Toast as TToast } from "~/types";
@@ -27,7 +28,7 @@ const List = styled.ol`
list-style: none;
margin: 0;
padding: 0;
z-index: ${(props) => props.theme.depths.toasts};
z-index: ${depths.toasts};
`;
export default observer(Toasts);