Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Fix variables

Krzysztof Bialoglowiczcd24cbeeaaf9
diff --git a/saleor/static/dashboard-next/components/AppLayout/AppLayout.tsx b/saleor/static/dashboard-next/components/AppLayout/AppLayout.tsx
index 6243a4d520..95917adcb5 100644
--- a/saleor/static/dashboard-next/components/AppLayout/AppLayout.tsx
+++ b/saleor/static/dashboard-next/components/AppLayout/AppLayout.tsx
@@ -102,17 +102,18 @@ const styles = (theme: Theme) =>
position: "absolute",
right: -16,
top: 65,
- transition: `background ${theme.transitions.duration.short}s`,
+ transition: `background ${theme.transitions.duration.shorter}ms`,
width: 32,
zIndex: 99
},
isMenuSmallDark: {
"&:hover": {
- background:
- "linear-gradient(0deg, rgba(25, 195, 190, 0.1), rgba(25, 195, 190, 0.1)), #2E2F31"
+ background: `linear-gradient(0deg, rgba(25, 195, 190, 0.1), rgba(25, 195, 190, 0.1)), ${
+ theme.palette.background.paper
+ }`
},
border: `solid 1px #252728`,
- transition: `background ${theme.transitions.duration.short}s`
+ transition: `background ${theme.transitions.duration.shorter}ms`
},
isMenuSmallHide: {
"& svg": {
@@ -176,7 +177,7 @@ const styles = (theme: Theme) =>
marginRight: theme.spacing.unit * 2,
position: "relative",
transform: "rotate(0deg)",
- transition: `${theme.transitions.duration.short}s ease-in-out`,
+ transition: `${theme.transitions.duration.shorter}ms ease-in-out`,
width: 42
},
menuIconDark: {
@@ -259,7 +260,7 @@ interface AppLayoutProps {
const AppLayout = withStyles(styles, {
name: "AppLayout"
})(
- withRouter<AppLayoutProps & RouteComponentProps<any>>(
+ withRouter<AppLayoutProps & RouteComponentProps<any>, any>(
({
classes,
children,
diff --git a/saleor/static/dashboard-next/components/AppLayout/MenuList.tsx b/saleor/static/dashboard-next/components/AppLayout/MenuList.tsx
index d6f824f845..d2fc3c5f8d 100644
--- a/saleor/static/dashboard-next/components/AppLayout/MenuList.tsx
+++ b/saleor/static/dashboard-next/components/AppLayout/MenuList.tsx
@@ -110,12 +110,12 @@ const styles = (theme: Theme) =>
opacity: 1,
paddingLeft: 16,
textTransform: "uppercase",
- transition: `opacity ${theme.transitions.duration.short}s ease 0.1s`
+ transition: `opacity ${theme.transitions.duration.shorter}ms ease 0.1s`
},
menuListItemTextHide: {
opacity: 0,
position: "absolute",
- transition: `opacity ${theme.transitions.duration.short}s ease`
+ transition: `opacity ${theme.transitions.duration.shorter}ms ease`
},
subMenu: {
padding: "0 15px"
diff --git a/saleor/static/dashboard-next/components/AppLayout/MenuNested.tsx b/saleor/static/dashboard-next/components/AppLayout/MenuNested.tsx
index a3d1a5c6d7..26c7f9cf3c 100644
--- a/saleor/static/dashboard-next/components/AppLayout/MenuNested.tsx
+++ b/saleor/static/dashboard-next/components/AppLayout/MenuNested.tsx
@@ -34,7 +34,7 @@ const styles = (theme: Theme) =>
position: "absolute",
right: 0,
top: 0,
- transition: `right ${theme.transitions.duration.short}s ease`,
+ transition: `right ${theme.transitions.duration.shorter}ms ease`,
width: 300,
zIndex: -1
},
diff --git a/saleor/static/dashboard-next/theme.ts b/saleor/static/dashboard-next/theme.ts
index c9e474bc2c..3826ae4471 100644
--- a/saleor/static/dashboard-next/theme.ts
+++ b/saleor/static/dashboard-next/theme.ts
@@ -328,11 +328,6 @@ export default (colors: IThemeColors): Theme =>
createShadow(9, 44, 7, 11, 16, -6, 22, 35, 2),
createShadow(9, 46, 8, 11, 15, -7, 24, 38, 3)
],
- transitions: {
- duration: {
- short: 0.2
- }
- },
typography: {
allVariants: {
fontFamily