Skip to content

fix: 🐛 Conditional into ternary & further github actions refinement#778

Open
aleparty wants to merge 23 commits intodevelopfrom
github-actions
Open

fix: 🐛 Conditional into ternary & further github actions refinement#778
aleparty wants to merge 23 commits intodevelopfrom
github-actions

Conversation

@aleparty
Copy link

What does this PR do?

(A few words about the PR)

Where should the reviewer start?

Any background context you want to provide?

Any scout cleaning/refactoring?

Any blog post related to the solution you have used?

Todos:

  • Checked on iOS
  • Checked on Android

Required reviewers:

return (
<>
{!__DEV__ && <WithCodePush />}
{!__DEV__ ? <WithCodePush /> : null}
Copy link

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 /> }

<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}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also no need in !!

<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}
Copy link

Choose a reason for hiding this comment

The 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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants