Skip to content

Commit

Permalink
Try to fix the master branch, as React Router had a patch release tha…
Browse files Browse the repository at this point in the history
…t gets transitively pulled, and which makes compilation fail
  • Loading branch information
jdubois committed Sep 14, 2018
1 parent da85270 commit 29b550c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import { I<%= entityReactName %> } from 'app/shared/model/<%= entityModelFileNam
import { IRootState } from 'app/shared/reducers';
import { getEntity, deleteEntity } from './<%= entityFileName %>.reducer';

export interface I<%= entityReactName %>DeleteDialogProps extends StateProps, DispatchProps, RouteComponentProps<{id: number}> {}
export interface I<%= entityReactName %>DeleteDialogProps extends StateProps, DispatchProps, RouteComponentProps<{id: string}> {}

export class <%= entityReactName %>DeleteDialog extends React.Component<I<%= entityReactName %>DeleteDialogProps> {
componentDidMount() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ import { I<%= entityReactName %> } from 'app/shared/model/<%= entityModelFileNam
// tslint:disable-next-line:no-unused-variable
import { APP_DATE_FORMAT, APP_LOCAL_DATE_FORMAT } from 'app/config/constants';

export interface I<%= entityReactName %>DetailProps extends StateProps, DispatchProps, RouteComponentProps<{id: number}> {}
export interface I<%= entityReactName %>DetailProps extends StateProps, DispatchProps, RouteComponentProps<{id: string}> {}

export class <%= entityReactName %>Detail extends React.Component<I<%= entityReactName %>DetailProps> {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,15 +121,15 @@ import { convertDateTimeFromServer } from 'app/shared/util/date-utils';
import { mapIdList } from 'app/shared/util/entity-utils';
<%_ } _%>

export interface I<%= entityReactName %>UpdateProps extends StateProps, DispatchProps, RouteComponentProps<{id: number}> {}
export interface I<%= entityReactName %>UpdateProps extends StateProps, DispatchProps, RouteComponentProps<{id: string}> {}

export interface I<%= entityReactName %>UpdateState {
isNew: boolean;
<%_ manyToManyOwners.forEach(val => { _%>
ids<%= val.relationshipName %>: any[];
<%_ }) _%>
<%_ relFieldNames.forEach(val => { _%>
<%= val.relationshipFieldName %>Id: number;
<%= val.relationshipFieldName %>Id: string;
<%_ }) _%>
}

Expand All @@ -142,7 +142,7 @@ export class <%= entityReactName %>Update extends React.Component<I<%= entityRea
ids<%= val.relationshipName %>: [],
<%_ }) _%>
<%_ relFieldNames.forEach(val => { _%>
<%= val.relationshipFieldName %>Id: 0,
<%= val.relationshipFieldName %>Id: '0',
<%_ }) _%>
isNew: !this.props.match.params || !this.props.match.params.id,
};
Expand Down Expand Up @@ -329,7 +329,7 @@ export class <%= entityReactName %>Update extends React.Component<I<%= entityRea
<%= fieldNameHumanized %>
</Translate>
</Label>
<AvField id="<%= entityFileName %>-<%= fieldName %>" type="number" className="form-control" name="<%= fieldName %>" <%- include react_validators %> />
<AvField id="<%= entityFileName %>-<%= fieldName %>" type="string" className="form-control" name="<%= fieldName %>" <%- include react_validators %> />
<%_
} else if (['byte[]', 'ByteBuffer'].includes(fieldType)) {

Expand Down

0 comments on commit 29b550c

Please sign in to comment.