import React from "react"; import { Dropdown, Icon, Grid, Divider, Button, Label, Responsive, } from "semantic-ui-react"; import { Segment, Image } from "semantic-ui-react"; import { BrowserView, MobileView } from "react-device-detect"; import { call } from "../client_server"; const AvatarImage = () => ( ); const IconHomeImage = () => ( ); const TitleImage = () => ; export default class MyHeader extends React.Component { constructor(props) { super(props); this.state = { username: "", }; this.getInfo(); } getInfo() { call.getUserInfo(this.state.token).then((res) => { if (res.status === 200) { this.setState({ username: res.data.username, }); } }); } render() { return (
); } }