summaryrefslogtreecommitdiffstats
path: root/sdnr/wt/odlux/apps/demoApp/src/views/editAuthor.tsx
blob: 31bfafc758627f060324321370795bfa90125169 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import * as React from 'react';
import { withRouter, RouteComponentProps } from 'react-router-dom';

type EditAuthorProps = RouteComponentProps<{ authorId: string}>;

class EditAuthorComponent extends React.Component<EditAuthorProps> {
  render(): JSX.Element {
    return (
      <div>
        <h2>Edit Author { this.props.match.params.authorId }</h2>
      </div>
    )
  }
}

export const EditAuthor = withRouter(EditAuthorComponent);
export default EditAuthor;