-
Notifications
You must be signed in to change notification settings - Fork 36
withUAL Prop Fix #47
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
withUAL Prop Fix #47
Conversation
wpwood
left a comment
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.
LGTM
⚜️
__tests__/withUAL.js
Outdated
| return <h1>Hello, {props.name}</h1>; | ||
| } | ||
| name = 'testName' | ||
| const WithUALComponent = withUAL(component) |
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.
Personal preference, but I'd just call that WrappedComponent
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.
👍
|
|
||
| import { UALContainer } from './UALContainer' | ||
| import { withUAL } from '../provider/UALContext' | ||
| import { withUAL } from '../provider/withUAL' |
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.
To stay consistent, should this be '../provider/WithUAL'?
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 in this case since its only export is withUAL, which is not a class, I want to keep this file lowercase withUAL to match
Uh oh!
There was an error while loading. Please reload this page.