-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
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
Filtering #59
Merged
Merged
Filtering #59
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
027af99
Added filter by headings
08b2578
Fixed Lint Issues
ddf7db0
Fixed Lint Issues
975a5d4
adding radio buttons and filter options
PrashanthKumarM ecb78c6
Merge remote-tracking branch 'origin/filtering' into filtering
PrashanthKumarM ddc91db
renderContent changes
3f73d56
Sidemenu change
cf833d6
Added the Route status and action requested options
dd3b243
Added function call and options for action requested and route status
ea0658e
Removed hard coded values for filter types
dc53f99
filtering payload added
b4316d2
filtering
fa85976
Merge branch 'develop' into filtering
5488d07
merge issues fixed
8596c5e
fixed build error
b38b362
Merge branch 'develop' into filtering
2228674
Merge branch 'develop' into filtering
PrashanthKumarM 9d16cdf
Added 3 filters completely
PrashanthKumarM eccd781
lint fixes
PrashanthKumarM e48252d
lint fix-2
PrashanthKumarM 9157003
content header added to reduce redundancy
PrashanthKumarM 33f7830
changing content header title to children
PrashanthKumarM abd1cf9
Merge branch 'develop' into filtering
PrashanthKumarM File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,4 +59,3 @@ ActionItemHeader.propTypes = { | |
}; | ||
|
||
export default ActionItemHeader; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import React from 'react'; | ||
import { | ||
StyleSheet, | ||
View, | ||
Text, | ||
} from 'react-native'; | ||
import { Colors } from '../lib/commons'; | ||
|
||
const style = StyleSheet.create({ | ||
headerText: { | ||
fontSize: 10, | ||
color: Colors.IUCrimson, | ||
fontFamily: 'BentonSansBold, Arial, sans-serif', | ||
margin: 10, | ||
}, | ||
}); | ||
|
||
const ContentHeader = ({ title }) => ( | ||
<View> | ||
<Text style={style.headerText}>{title}</Text> | ||
</View> | ||
); | ||
|
||
ContentHeader.propTypes = { | ||
title: React.PropTypes.string.isRequired, | ||
}; | ||
|
||
export default ContentHeader; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd recommend not using a
title
prop and just use thechildren
prop. It looks like it's allowed forText
components to have node children, so if you just use children you can pass off prop validation to the react-native component and allow yourself more flexibility.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried to use children and lint threw an error saying I need to have a prop validation for it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, the type of
children
should be documented asReact.PropTypes.node
: jsx-eslint/eslint-plugin-react#7