Skip to content

Commit

Permalink
add function signatures
Browse files Browse the repository at this point in the history
  • Loading branch information
Yasser Elsayed committed Nov 13, 2018
1 parent a21efda commit 6dab7b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/src/components/Toolbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export interface ToolbarProps {

class Toolbar extends React.Component<ToolbarProps> {

public render(): JSX.Element {
public render(): JSX.Element | null {
const currentPage = this.props.breadcrumbs.length ?
this.props.breadcrumbs[this.props.breadcrumbs.length - 1].displayName : '';
const breadcrumbs = this.props.breadcrumbs.slice(0, this.props.breadcrumbs.length - 1);
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/404.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default class Page404 extends Page<{}, {}> {
return;
}

public render() {
public render(): JSX.Element {
return (
<div style={{ margin: '100px auto', textAlign: 'center' }}>
<div style={{ color: '#aaa', fontSize: 50, fontWeight: 'bold' }}>404</div>
Expand Down

0 comments on commit 6dab7b8

Please sign in to comment.