@@ -5,7 +5,8 @@ import {connect} from 'react-redux'
55import history from '../../../store/history' ;
66import logo from '../../../images/logo.png' ;
77import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' ;
8-
8+ import { VERSION } from '../../../App/common/env' ;
9+ import { faPoll } from "@fortawesome/free-solid-svg-icons" ;
910
1011const Logo = ( ) => {
1112
@@ -56,7 +57,7 @@ class DrawerE extends Component {
5657 flex : 'initial'
5758
5859 }
59- const appLogoInnerStyle = {
60+ const appLogoInnerStyle = {
6061 display : 'flex' ,
6162 paddingLeft : '0px' ,
6263 paddingRight : '0' ,
@@ -66,13 +67,22 @@ class DrawerE extends Component {
6667 return (
6768 < div className = { classes } >
6869 < Drawer
69- containerStyle = { { backgroundImage : 'linear-gradient(142deg,#00041a,#00126b)' } }
70+ containerStyle = { {
71+ backgroundImage : 'linear-gradient(142deg,#00041a,#00126b)' ,
72+ display : 'flex' ,
73+ flexDirection : 'column'
74+ } }
7075 docked
7176 open = { open }
7277 onClose = { this . handleClose } >
7378 < AppBar showMenuIconButton = { false } title = { < Logo /> } titleStyle = { style [ 'appbar-logo' ] }
7479 titleStyle = { appLogoTitleStyle } style = { appLogoInnerStyle } className = { style . appbar } />
75- < div style = { { marginTop : '45px' , paddingLeft : '9px' , width : '100%' } } >
80+ < div style = { {
81+ marginTop : '45px' , paddingLeft : '9px' , width : '100%' ,
82+ display : 'flex' ,
83+ flexDirection : 'column' ,
84+ justifyContent : 'space-between'
85+ } } >
7686
7787 < List >
7888 { listItemData . map ( ( listItem ) => {
@@ -94,7 +104,7 @@ class DrawerE extends Component {
94104 // className={url.includes(nestedItem.navigateTo) ? style['menu-selected'] : undefined}
95105 primaryText = { nestedItem . primaryText }
96106 onClick = { nestedItem . linkUrl ? ( ) => window . open ( nestedItem . linkUrl , '_blank' ) : ( ) => this . apiClick ( `/${ nestedItem . navigateTo } ` ) }
97- iconStyle = { { fontSize :'5px' } }
107+ iconStyle = { { fontSize : '5px' } }
98108 leftIcon = { nestedItem . icon &&
99109 < FontAwesomeIcon size = { 'xs' } className = { style . icon }
100110 icon = { nestedItem . icon } fixedWidth /> }
@@ -107,6 +117,15 @@ class DrawerE extends Component {
107117 } ) }
108118 </ List >
109119 </ div >
120+ < div style = { {
121+ color : '#c2c2c28f' ,
122+ display : 'flex' ,
123+ flex : 1 ,
124+ justifyContent : 'center' ,
125+ alignItems : 'flex-end' ,
126+ } } >
127+ < Bottom />
128+ </ div >
110129 </ Drawer >
111130 < AppBar
112131 // title={<span style={{ cursor: 'default' }}><img width={'50px'} height={'50px'} src={Logo} alt={'Mickey'}/>Predator</span> }
@@ -123,10 +142,34 @@ class DrawerE extends Component {
123142 }
124143}
125144
145+
146+ const Bottom = ( ) => {
147+ return (
148+ < div style = { {
149+ display : 'flex' , marginBottom : '10px' ,
150+ flexDirection : 'row' ,
151+ flex : 1 ,
152+ justifyContent : 'space-between' ,
153+ marginLeft : '10px' ,
154+ marginRight : '10px' ,
155+ alignItems : 'center'
156+ } } >
157+ < FontAwesomeIcon size = { '2x' } style = { {
158+ color : 'white' ,
159+ cursor : 'pointer'
160+ } } icon = { faPoll }
161+ onClick = { ( ) => window . open ( "https://docs.google.com/forms/d/15dozkkA2xBUV7T7ls5XMyBj-JDg5Tj-TXNMp9PkdFsM/viewform?edit_requested=true" ) } />
162+ < div > v{ VERSION } </ div >
163+ </ div >
164+ )
165+ }
166+
167+
126168function mapStateToProps ( state ) {
127169 return {
128170 url : state . router . location . pathname
129171 }
130172}
131173
174+
132175export default connect ( mapStateToProps ) ( DrawerE ) ;
0 commit comments