diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index aed81d56..8e57b486 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -118,7 +118,7 @@ const App = (message, props) => { const options = { timeout: 5000, - position: positions.BOTTOM_RIGHT + position: positions.TOP_CENTER, }; const includedData = window.location.pathname === "/home" || window.location.pathname === "/features" ? diff --git a/frontend/src/components/AlertTemplate.js b/frontend/src/components/AlertTemplate.js index e86da840..a476afc7 100644 --- a/frontend/src/components/AlertTemplate.js +++ b/frontend/src/components/AlertTemplate.js @@ -1,11 +1,12 @@ import React from 'react' -import InfoIcon from './icons/InfoIcon' -import SuccessIcon from './icons/SuccessIcon' -import ErrorIcon from './icons/ErrorIcon' -import CloseIcon from './icons/CloseIcon' +import InfoIcon from '@material-ui/icons/Info'; +import CheckIcon from '@material-ui/icons/Check'; +import ErrorOutlineIcon from '@material-ui/icons/ErrorOutline'; +import CloseIcon from '@material-ui/icons/Close'; +import Typography from '@material-ui/core/Typography'; const alertStyle = { - backgroundColor: '#151515', + backgroundColor: 'rgba(0,0,0,0.9)', color: 'white', padding: 15, textTransform: 'uppercase', @@ -14,10 +15,9 @@ const alertStyle = { justifyContent: 'space-between', alignItems: 'center', boxShadow: '0px 2px 2px 2px rgba(0, 0, 0, 0.03)', - fontFamily: 'Arial', width: 400, boxSizing: 'border-box', - zIndex: 10001, + zIndex: 100001, } const buttonStyle = { @@ -31,10 +31,10 @@ const buttonStyle = { const AlertTemplate = ({ message, options, style, close }) => { return (
- {options.type === 'info' && } - {options.type === 'success' && } - {options.type === 'error' && } - {message} + {options.type === 'info' && } + {options.type === 'success' && } + {options.type === 'error' && } + {message}