File tree Expand file tree Collapse file tree 4 files changed +11
-3
lines changed Expand file tree Collapse file tree 4 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -9,13 +9,13 @@ import ListItemText from '@material-ui/core/ListItemText';
9
9
import DialogTitle from '@material-ui/core/DialogTitle' ;
10
10
import Dialog from '@material-ui/core/Dialog' ;
11
11
import DeleteRoundedIcon from '@material-ui/icons/DeleteRounded' ;
12
- import AddIcon from '@material-ui/icons/Add' ;
13
12
import { blue } from '@material-ui/core/colors' ;
14
13
15
14
import {
16
15
getProjects ,
17
16
deleteProject
18
17
} from '../../helperFunctions/projectGetSaveDel' ;
18
+ import localforage from 'localforage' ;
19
19
import { stateContext } from '../../context/context' ;
20
20
21
21
export interface ProjectDialogProps {
@@ -43,6 +43,7 @@ function ProjectsDialog(props: ProjectDialogProps) {
43
43
) [ 0 ] ;
44
44
console . log ( 'selectedProject is' , selectedProject ) ;
45
45
deleteProject ( selectedProject ) ;
46
+ localforage . removeItem ( window . localStorage . getItem ( 'ssid' ) ) ;
46
47
dispatch ( { type : 'RESET STATE' , payload : { } } ) ;
47
48
onClose ( ) ;
48
49
} ;
Original file line number Diff line number Diff line change @@ -65,14 +65,15 @@ function ProjectsDialog(props: ProjectDialogProps) {
65
65
</ ListItem >
66
66
) ) }
67
67
{ /* Change state to empty for new project */ }
68
+ { /* ***TODO*** Add project functionality
68
69
<ListItem autoFocus button onClick={() => handleClose()}>
69
70
<ListItemAvatar>
70
71
<Avatar>
71
72
<AddIcon />
72
73
</Avatar>
73
74
</ListItemAvatar>
74
75
<ListItemText primary="New Project" />
75
- </ ListItem >
76
+ </ListItem> */ }
76
77
</ List >
77
78
</ Dialog >
78
79
) ;
Original file line number Diff line number Diff line change @@ -211,7 +211,8 @@ const useStyles = makeStyles({
211
211
margin : '40px' ,
212
212
display : 'flex' ,
213
213
flexDirection : 'column' ,
214
- alignItems : 'center'
214
+ alignItems : 'center' ,
215
+ justifySelf : 'flex-end'
215
216
} ,
216
217
217
218
logoutButton : {
Original file line number Diff line number Diff line change 369
369
padding-top : 35px ;
370
370
width : 420px ;
371
371
}
372
+
373
+ .rightPanelWrapper {
374
+ display : flex;
375
+ flex-direction : column;
376
+ }
You can’t perform that action at this time.
0 commit comments