Skip to content

Commit

Permalink
Removed unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
macenturalxl1 committed Nov 18, 2020
1 parent 329949c commit 5abe65f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 20 deletions.
4 changes: 2 additions & 2 deletions ui/src/components/AddGraph/AddGraph.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,9 @@ export default class AddGraph extends React.Component<{}, IState> {
});
}
}

private disableSubmitButton(): boolean {
const { graphName } = this.state.newGraph;
return !this.state.elements || !this.state.types || !graphName;
return !this.state.elements || !this.state.types || !this.state.newGraph.graphName;
}

public render() {
Expand Down
20 changes: 2 additions & 18 deletions ui/src/components/Navigation/NavigationAppbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,27 +94,11 @@ const useStyles = makeStyles((theme: Theme) =>
const NavigationAppbar: React.FC = (props: any) => {
const classes = useStyles();

const [openPopup, setOpenPopup] = React.useState(false);

const [logoutSuccess, setLogoutSuccess] = React.useState(false);

const [logoutFail, setlogoutFail] = React.useState(false);
const [errorMessage, setErrorMessage] = React.useState('');

const onSuccess = () => {
setLogoutSuccess(true);
};

const onError = (message: string) => {
setlogoutFail(true);
setErrorMessage(message);
};

const activeRoute = (routeName: any) => {
const activeRoute = (routeName: string) => {
return props.location.pathname === routeName;
};

const getSideNavIcon = (sidebarName: any) => {
const getSideNavIcon = (sidebarName: string) => {
switch (sidebarName) {
case 'Add Graph':
return <AddCircleOutlineIcon />;
Expand Down

0 comments on commit 5abe65f

Please sign in to comment.