File tree Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ import './App.scss';
12
12
// Entry point of the Flitped App
13
13
function App ( ) {
14
14
const [ , setUser ] = useState ( null ) ;
15
- const [ username , setUsername ] = useState ( '' ) ;
16
15
const [ fname , setFirstName ] = useState ( '' ) ;
17
16
18
17
function storeToken ( ) : void {
@@ -27,7 +26,6 @@ function App() {
27
26
} )
28
27
. then ( ( authUser ) => {
29
28
setUser ( authUser ) ;
30
- setUsername ( authUser . username ) ;
31
29
setFirstName ( authUser . attributes . given_name ) ;
32
30
} )
33
31
. catch ( ( ) => console . log ( 'Not signed in' ) ) ;
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import IconExpandLess from '@material-ui/icons/ExpandLess';
10
10
import IconExpandMore from '@material-ui/icons/ExpandMore' ;
11
11
import SideBarItemComponent from './SideBarItemComponent' ;
12
12
13
- const useStyles = makeStyles ( ( theme ) =>
13
+ const useStyles = makeStyles ( ( ) =>
14
14
createStyles ( {
15
15
sideBarItem : {
16
16
'&.active' : {
You can’t perform that action at this time.
0 commit comments