From f449e3277ae26268e35d74dd04e8dbb1edf600c5 Mon Sep 17 00:00:00 2001 From: Dirk Klimpel <5740567+dklimpel@users.noreply.github.com> Date: Thu, 17 Feb 2022 20:49:34 +0100 Subject: [PATCH] Replace deprecated `fade` in `devices.js` (#220) --- src/components/devices.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/devices.js b/src/components/devices.js index ee9292c..5003987 100644 --- a/src/components/devices.js +++ b/src/components/devices.js @@ -8,7 +8,7 @@ import { } from "react-admin"; import ActionDelete from "@material-ui/icons/Delete"; import { makeStyles } from "@material-ui/core/styles"; -import { fade } from "@material-ui/core/styles/colorManipulator"; +import { alpha } from "@material-ui/core/styles/colorManipulator"; import classnames from "classnames"; const useStyles = makeStyles( @@ -16,7 +16,7 @@ const useStyles = makeStyles( deleteButton: { color: theme.palette.error.main, "&:hover": { - backgroundColor: fade(theme.palette.error.main, 0.12), + backgroundColor: alpha(theme.palette.error.main, 0.12), // Reset on mouse devices "@media (hover: none)": { backgroundColor: "transparent",