Complete rewrite of local state management.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import React, { Component, useState } from "react";
|
||||
import React from "react";
|
||||
import { Link } from "react-router-dom";
|
||||
import { Menu, Icon } from "antd";
|
||||
import "./header.styles.scss";
|
||||
@@ -7,9 +7,9 @@ import SignOut from "../sign-out/sign-out.component";
|
||||
export default ({ selectedNavItem, navItems }) => {
|
||||
const handleClick = e => {
|
||||
console.log("click ", e);
|
||||
this.setState({
|
||||
current: e.key
|
||||
});
|
||||
// this.setState({
|
||||
// current: e.key
|
||||
// });
|
||||
};
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user