diff --git a/.prettierrc b/.prettierrc
index b881ec4..3e29ade 100644
--- a/.prettierrc
+++ b/.prettierrc
@@ -2,5 +2,5 @@
"tabWidth": 2,
"singleQuote": false,
"semi": true,
- "trailingComma": "all"
+ "trailingComma": "none"
}
\ No newline at end of file
diff --git a/src/components/Header/Header.js b/src/components/Header/Header.js
index 6d54214..b90c577 100644
--- a/src/components/Header/Header.js
+++ b/src/components/Header/Header.js
@@ -15,7 +15,7 @@ import {
Person as AccountIcon,
Search as SearchIcon,
Send as SendIcon,
- MenuOpen as MenuOpenIcon,
+ MenuOpen as MenuOpenIcon
} from "@material-ui/icons";
import classNames from "classnames";
@@ -31,7 +31,7 @@ import UserAvatar from "../UserAvatar/UserAvatar";
import {
useLayoutState,
useLayoutDispatch,
- toggleSidebar,
+ toggleSidebar
} from "../../context/LayoutContext";
import { useUserDispatch, signOut } from "../../context/UserContext";
@@ -41,29 +41,29 @@ const messages = [
variant: "warning",
name: "Jane Hew",
message: "Hey! How is it going?",
- time: "9:32",
+ time: "9:32"
},
{
id: 1,
variant: "success",
name: "Lloyd Brown",
message: "Check out my new Dashboard",
- time: "9:18",
+ time: "9:18"
},
{
id: 2,
variant: "primary",
name: "Mark Winstein",
message: "I want rearrange the appointment",
- time: "9:15",
+ time: "9:15"
},
{
id: 3,
variant: "secondary",
name: "Liana Dutti",
message: "Good news from sale department",
- time: "9:09",
- },
+ time: "9:09"
+ }
];
const notifications = [
@@ -72,20 +72,20 @@ const notifications = [
id: 1,
color: "success",
type: "info",
- message: "What is the best way to get ...",
+ message: "What is the best way to get ..."
},
{
id: 2,
color: "secondary",
type: "notification",
- message: "This is just a simple notification",
+ message: "This is just a simple notification"
},
{
id: 3,
color: "primary",
type: "e-commerce",
- message: "12 new orders has arrived today",
- },
+ message: "12 new orders has arrived today"
+ }
];
export default function Header(props) {
@@ -112,25 +112,19 @@ export default function Header(props) {
onClick={() => toggleSidebar(layoutDispatch)}
className={classNames(
classes.headerMenuButtonSandwich,
- classes.headerMenuButtonCollapse,
+ classes.headerMenuButtonCollapse
)}
>
{layoutState.isSidebarOpened ? (
) : (
)}
@@ -141,12 +135,12 @@ export default function Header(props) {
setSearchOpen(!isSearchOpen)}
>
@@ -156,7 +150,7 @@ export default function Header(props) {
placeholder="Search…"
classes={{
root: classes.inputRoot,
- input: classes.inputInput,
+ input: classes.inputInput
}}
/>
@@ -164,7 +158,7 @@ export default function Header(props) {
color="inherit"
aria-haspopup="true"
aria-controls="mail-menu"
- onClick={e => {
+ onClick={(e) => {
setNotificationsMenu(e.currentTarget);
setIsNotificationsUnread(false);
}}
@@ -181,7 +175,7 @@ export default function Header(props) {
color="inherit"
aria-haspopup="true"
aria-controls="mail-menu"
- onClick={e => {
+ onClick={(e) => {
setMailMenu(e.currentTarget);
setIsMailsUnread(false);
}}
@@ -199,7 +193,7 @@ export default function Header(props) {
color="inherit"
className={classes.headerMenuButton}
aria-controls="profile-menu"
- onClick={e => setProfileMenu(e.currentTarget)}
+ onClick={(e) => setProfileMenu(e.currentTarget)}
>
@@ -225,7 +219,7 @@ export default function Header(props) {
{messages.length} New Messages
- {messages.map(message => (
+ {messages.map((message) => (