forked from BlueWallet/BlueWallet
-
Notifications
You must be signed in to change notification settings - Fork 6
fix: 🐛 Conditional into ternary & further github actions refinement #778
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
Open
aleparty
wants to merge
23
commits into
develop
Choose a base branch
from
github-actions
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
fb1c929
Create main.yml
aleparty eaf71b8
ci: 🎡 GitHub Actions commit
a79d75c
refactor: 💡 Clean up CI
f3c735b
ci: 🎡 Added new workflows
c3d5a91
ci: 🎡 Removed main.yml
7e8baea
ci: 🎡 Add on elements to workflows
90e6a05
ci: 🎡 Add semgrep
f2569f3
ci: 🎡 Added :on to semgrep
63289cc
chore: 🤖 removed top-ten-owasp
66f4cf2
ci: 🎡 Added more configs for Semgrep
85cf627
ci: 🎡 typo in one rule fix
d25fced
ci: 🎡 Added r2c-best-practices
5ac8dc4
chore: 🤖 removed excessive parameter in pull-request.yml
c522e53
chore: 🤖 bump semantic-pull-request version
ca269b4
refactor: 💡 Added config options for lint sem
4a51886
chore: 🤖 remove requireScope from pull-request.yml
59df49b
ci: 🎡 Publish to GVSD
79d75c4
ci: 🎡 HEAD^2 Alert removal
4bdeede
ci: 🎡 Remove best-practices from semgrep
e9715b2
Merge branch 'develop' into github-actions
aleparty d8d1c91
ci: 🎡 Change "yarn" to "npm" in dependabot
107aa8f
ci: 🎡 Fix merge conflicts
cdf3472
fix: 🐛 Conditional into ternary
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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -131,7 +131,7 @@ export class InputItem extends Component<Props, State> { | |
| return ( | ||
| <View style={styles.container}> | ||
| <Animated.Text style={[styles.label, { top, fontSize }]}>{label}</Animated.Text> | ||
| {!!suffix && <Text style={styles.suffix}>{suffix}</Text>} | ||
| {!!suffix ? <Text style={styles.suffix}>{suffix}</Text> : null} | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also no need in |
||
| <BaseTextInput | ||
| ref={this.inputItemRef} | ||
| autoCorrect={false} | ||
|
|
||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -38,7 +38,7 @@ export const MessageScreen = (props: Props) => { | |
| <Text style={styles.title}>{title}</Text> | ||
| <Image testID={testID} source={source} style={[styles.image, imageStyle]} resizeMode="contain" /> | ||
| <Text style={styles.description}>{description}</Text> | ||
| {buttonProps && <Button testID="message-close-button" {...buttonProps} />} | ||
| {buttonProps ? <Button testID="message-close-button" {...buttonProps} /> : null} | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not for this PR but maybe for later we should not use spread on components props? |
||
| </View> | ||
| ); | ||
| }; | ||
|
|
||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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.
In this case I propose not to use negation
{__DEV__ ? null : <WithCodePush /> }