From c52fc3d6dad2b25d4921c4f9b5a55028c1047606 Mon Sep 17 00:00:00 2001 From: Tudor Stanciu Date: Sun, 4 Jul 2021 02:52:14 +0300 Subject: [PATCH] removed unused component --- src/components/Header/HeaderView.js | 456 ---------------------------- 1 file changed, 456 deletions(-) delete mode 100644 src/components/Header/HeaderView.js diff --git a/src/components/Header/HeaderView.js b/src/components/Header/HeaderView.js deleted file mode 100644 index a52e5a1..0000000 --- a/src/components/Header/HeaderView.js +++ /dev/null @@ -1,456 +0,0 @@ -import React from "react"; -import { - AppBar, - Toolbar, - IconButton, - InputBase, - Menu, - MenuItem, - Fab, - withStyles -} from "@material-ui/core"; -import { - Menu as MenuIcon, - MailOutline as MailIcon, - NotificationsNone as NotificationsIcon, - Person as AccountIcon, - Search as SearchIcon, - Send as SendIcon, - ArrowBack as ArrowBackIcon -} from "@material-ui/icons"; -import { fade } from "@material-ui/core/styles/colorManipulator"; -import classNames from "classnames"; - -import { Badge, Typography } from "../Wrappers"; -import Notification from "../Notification"; -import UserAvatar from "../UserAvatar"; - -const messages = [ - { - id: 0, - variant: "warning", - name: "Jane Hew", - message: "Hey! How is it going?", - time: "9:32" - }, - { - id: 1, - variant: "success", - name: "Lloyd Brown", - message: "Check out my new Dashboard", - time: "9:18" - }, - { - id: 2, - variant: "primary", - name: "Mark Winstein", - message: "I want rearrange the appointment", - time: "9:15" - }, - { - id: 3, - variant: "secondary", - name: "Liana Dutti", - message: "Good news from sale department", - time: "9:09" - } -]; - -const notifications = [ - { id: 0, color: "warning", message: "Check out this awesome ticket" }, - { - id: 1, - color: "success", - type: "info", - message: "What is the best way to get ..." - }, - { - id: 2, - color: "secondary", - type: "notification", - message: "This is just a simple notification" - }, - { - id: 3, - color: "primary", - type: "e-commerce", - message: "12 new orders has arrived today" - } -]; - -const Header = ({ classes, isSidebarOpened, toggleSidebar, ...props }) => ( - - - - {isSidebarOpened ? ( - - ) : ( - - )} - - React Material Admin -
-
-
- -
- -
- - - - - - - - - - - - - - -
- - New Messages - - - {messages.length} New Messages - -
- {messages.map(message => ( - -
- - - {message.time} - -
-
- - {message.name} - - {message.message} -
-
- ))} - - Send New Message - - -
- - {notifications.map(notification => ( - - - - ))} - - -
- - John Smith - - - Flalogic.com - -
- - Profile - - - Tasks - - - Messages - -
- - Sign Out - -
-
- - -); - -const styles = theme => ({ - logotype: { - color: "white", - marginLeft: theme.spacing.unit * 2.5, - marginRight: theme.spacing.unit * 2.5, - fontWeight: 500, - fontSize: 18, - whiteSpace: "nowrap", - [theme.breakpoints.down("xs")]: { - display: "none" - } - }, - appBar: { - width: "100vw", - zIndex: theme.zIndex.drawer + 1, - transition: theme.transitions.create(["margin"], { - easing: theme.transitions.easing.sharp, - duration: theme.transitions.duration.leavingScreen - }) - }, - toolbar: { - paddingLeft: theme.spacing.unit * 2, - paddingRight: theme.spacing.unit * 2 - }, - hide: { - display: "none" - }, - grow: { - flexGrow: 1 - }, - search: { - position: "relative", - borderRadius: 25, - paddingLeft: theme.spacing.unit * 2.5, - width: 36, - backgroundColor: fade(theme.palette.common.black, 0), - transition: theme.transitions.create(["background-color", "width"]), - "&:hover": { - cursor: "pointer", - backgroundColor: fade(theme.palette.common.black, 0.08) - } - }, - searchFocused: { - backgroundColor: fade(theme.palette.common.black, 0.08), - width: "100%", - [theme.breakpoints.up("md")]: { - width: 250 - } - }, - searchIcon: { - width: 36, - right: 0, - height: "100%", - position: "absolute", - display: "flex", - alignItems: "center", - justifyContent: "center", - transition: theme.transitions.create("right"), - "&:hover": { - cursor: "pointer" - } - }, - searchIconOpened: { - right: theme.spacing.unit * 1.25 - }, - inputRoot: { - color: "inherit", - width: "100%" - }, - inputInput: { - height: 36, - padding: 0, - paddingRight: 36 + theme.spacing.unit * 1.25, - width: "100%" - }, - messageContent: { - display: "flex", - flexDirection: "column" - }, - headerMenu: { - marginTop: theme.spacing.unit * 7 - }, - headerMenuList: { - display: "flex", - flexDirection: "column" - }, - headerMenuItem: { - "&:hover, &:focus": { - backgroundColor: theme.palette.primary.main, - color: "white" - } - }, - headerMenuButton: { - marginLeft: theme.spacing.unit * 2, - padding: theme.spacing.unit / 2 - }, - headerMenuButtonCollapse: { - marginRight: theme.spacing.unit * 2 - }, - headerIcon: { - fontSize: 28, - color: "rgba(255, 255, 255, 0.35)" - }, - headerIconCollapse: { - color: "white" - }, - profileMenu: { - minWidth: 265 - }, - profileMenuUser: { - display: "flex", - flexDirection: "column", - padding: theme.spacing.unit * 2 - }, - profileMenuItem: { - color: theme.palette.text.hint - }, - profileMenuIcon: { - marginRight: theme.spacing.unit * 2, - color: theme.palette.text.hint - }, - profileMenuLink: { - fontSize: 16, - textDecoration: "none", - "&:hover": { - cursor: "pointer" - } - }, - messageNotification: { - height: "auto", - display: "flex", - alignItems: "center", - "&:hover, &:focus": { - backgroundColor: theme.palette.background.light - } - }, - messageNotificationSide: { - display: "flex", - flexDirection: "column", - alignItems: "center", - marginRight: theme.spacing.unit * 2 - }, - messageNotificationBodySide: { - alignItems: "flex-start", - marginRight: 0 - }, - sendMessageButton: { - margin: theme.spacing.unit * 4, - marginTop: theme.spacing.unit * 2, - marginBottom: theme.spacing.unit * 2, - textTransform: "none" - }, - sendButtonIcon: { - marginLeft: theme.spacing.unit * 2 - } -}); - -export default withStyles(styles)(Header);