Skip to content

Commit

Permalink
Allow string and number normalization sources
Browse files Browse the repository at this point in the history
  • Loading branch information
flekschas committed Nov 20, 2018
1 parent 1b6f375 commit a60e26c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
5 changes: 4 additions & 1 deletion ui/src/views/SearchClassifications.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,10 @@ SearchClassifications.propTypes = {
isLoading: PropTypes.bool,
isTraining: PropTypes.bool,
itemsPerPage: PropTypes.number,
normalizationSource: PropTypes.string,
normalizationSource: PropTypes.oneOfType([
PropTypes.number,
PropTypes.string
]),
normalizeBy: PropTypes.object,
onNormalize: PropTypes.func.isRequired,
onPage: PropTypes.func.isRequired,
Expand Down
5 changes: 4 additions & 1 deletion ui/src/views/SearchResults.js
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,10 @@ SearchResults.propTypes = {
isTrained: PropTypes.bool,
isTraining: PropTypes.bool,
itemsPerPage: PropTypes.number,
normalizationSource: PropTypes.string,
normalizationSource: PropTypes.oneOfType([
PropTypes.number,
PropTypes.string
]),
normalizeBy: PropTypes.object,
onNormalize: PropTypes.func.isRequired,
onPage: PropTypes.func.isRequired,
Expand Down
5 changes: 4 additions & 1 deletion ui/src/views/SearchSeeds.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,10 @@ SearchSeeds.propTypes = {
isReady: PropTypes.bool,
isTraining: PropTypes.bool,
itemsPerPage: PropTypes.number,
normalizationSource: PropTypes.string,
normalizationSource: PropTypes.oneOfType([
PropTypes.number,
PropTypes.string
]),
normalizeBy: PropTypes.object,
onNormalize: PropTypes.func.isRequired,
onPage: PropTypes.func.isRequired,
Expand Down

0 comments on commit a60e26c

Please sign in to comment.