Skip to content

Commit 42b472f

Browse files
fix: success button's color
1 parent 7241baa commit 42b472f

File tree

2 files changed

+125
-1635
lines changed

2 files changed

+125
-1635
lines changed

src/pages/notifications/Notifications.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import React, { useState } from "react";
22
import { Grid } from "@material-ui/core";
33
import { Close as CloseIcon } from "@material-ui/icons";
4-
import { useTheme } from "@material-ui/styles";
54
import { ToastContainer, toast } from "react-toastify";
65
import SyntaxHighlighter from "react-syntax-highlighter";
76
import { docco } from "react-syntax-highlighter/dist/esm/styles/hljs";
@@ -27,7 +26,6 @@ const positions = [
2726
];
2827

2928
export default function NotificationsPage(props) {
30-
var theme = useTheme();
3129
var classes = useStyles();
3230

3331
// local
@@ -124,7 +122,7 @@ export default function NotificationsPage(props) {
124122
</Button>
125123
<Button
126124
variant="contained"
127-
style={{ color: theme.palette.success.main }}
125+
color="success"
128126
onClick={() => handleNotificationCall("success")}
129127
className={classnames(classes.notificationCallButton)}
130128
>

0 commit comments

Comments
 (0)