We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Code duplication? this could even lead to displaying different icons if the code is changed separately.
https://github.com/huridocs/UwaziDocs/blob/9fcc2009263a36f4885b0e0bcc7bd70dfef2c973/app/react/Templates/components/MetadataProperty.js
let iconClass = 'fa fa-font'; if (this.props.type === 'select') { iconClass = 'fa fa-sort'; } if (this.props.type === 'list') { iconClass = 'fa fa-list'; } if (this.props.type === 'date') { iconClass = 'fa fa-calendar'; } if (this.props.type === 'checkbox') { iconClass = 'fa fa-check-square-o'; }
https://github.com/huridocs/UwaziDocs/blob/9fcc2009263a36f4885b0e0bcc7bd70dfef2c973/app/react/Templates/components/FilterSuggestions.js
getTypeIcon(type) { let icon; switch (type) { case 'checkbox': icon = 'fa fa-check-square-o'; break; case 'select': icon = 'fa fa-sort'; break; case 'list': icon = 'fa fa-list'; break; case 'date': icon = 'fa fa-calendar'; break; default: icon = 'fa fa-font'; } return icon; }
The text was updated successfully, but these errors were encountered:
Fixed with #81
Sorry, something went wrong.
konzz
No branches or pull requests
Code duplication? this could even lead to displaying different icons if the code is changed separately.
https://github.com/huridocs/UwaziDocs/blob/9fcc2009263a36f4885b0e0bcc7bd70dfef2c973/app/react/Templates/components/MetadataProperty.js
https://github.com/huridocs/UwaziDocs/blob/9fcc2009263a36f4885b0e0bcc7bd70dfef2c973/app/react/Templates/components/FilterSuggestions.js
The text was updated successfully, but these errors were encountered: