-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[No QA] Create InlineSystemMessage component #9168
Conversation
Ready for review! |
}; | ||
|
||
const InlineSystemMessage = (props) => { | ||
if (props.message.length() === 0) { |
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 think this should be props.message.length === 0
, as I'm getting a length is not a function error
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.
Ah, totally right. My bad, as I added this at the end 😬
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.
Looking good, left a couple of minor points.
Comments addressed! |
Looks good to me on both mobile and web 👍 |
🚀 Deployed to staging by @Julesssss in version: 1.1.68-1 🚀
|
} | ||
return ( | ||
<View style={[styles.flexRow, styles.alignItemsCenter]}> | ||
<Icon src={Expensicons.Exclamation} fill={colors.red} /> |
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.
We should never reference colors
directly in the UI – instead we should always reference themes. This is so that we can easily add darkmode (and potentially other themes?) later on.
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.
Created a quick follow-up PR #9198
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.
Ah, nice spot Rory. Thanks
🚀 Deployed to production by @Julesssss in version: 1.1.68-2 🚀
|
2 similar comments
🚀 Deployed to production by @Julesssss in version: 1.1.68-2 🚀
|
🚀 Deployed to production by @Julesssss in version: 1.1.68-2 🚀
|
Please ignore these duplicated messages, we only deployed once but the message appears each the iOS deploy fails. |
🚀 Deployed to production by @Julesssss in version: 1.1.68-2 🚀
|
🚀 Deployed to production by @Julesssss in version: 1.1.68-2 🚀
|
Details
Fixed Issues
$ https://github.com/Expensify/Expensify/issues/211552
Tests
We can't really display this component yet, since we don't store network errors on actions for now, so, to test this, you can call the component around here so it displays under all messages. You can pass anything as the message prop:
We'll do more thorough testing of the component and its visual when we actually place it