-
Notifications
You must be signed in to change notification settings - Fork 30
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
APP-3274 - Update React imports to use standard style. #68
APP-3274 - Update React imports to use standard style. #68
Conversation
lint is failing @sasha-symphony |
@@ -47,7 +47,7 @@ describe('Key Utils', () => { | |||
it(`should handle ${test.key} shift=${test.shiftKey} on cell`, () => { | |||
const event = createEvent({ key: test.key, shiftKey: test.shiftKey }); | |||
const wrapper = shallow( | |||
<div onKeyDown={(e) => handleKeyDownCell(new Date(), e, setMethod, setMethod2, {})} /> | |||
<div onKeyDown={(e) => handleKeyDownCell(new Date(), e, setMethod, setMethod2, ()=>{}, {})} /> |
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.
is this a mistake? :D
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.
No. handleKeyDownCell takes 6 params, but this test was only supplying 5, and the 5th one was wrong. I simply added an empty function for focusDiv
. Perhaps some of the types are supposed to be optional. The locale isn't typed at all.
export function handleKeyDownCell(
date: Date,
e: React.KeyboardEvent,
setNavigationDate: (date) => any,
setDivToFocus: (date) => any,
focusDiv: (date) => any,
locale
)
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 reverted this change, as it isn't technically within the scope of this PR, but it should be fixed.
The error I was attempting to fix was a missing parameter. If any of the parameters are optional, they should be labelled as such, and the locale param should have a type. @AliciaSymphony
APP-3785 Difference option and tk-option
Description
When adding uitoolkit-components as a dependency to SFE-Lite, typescript complains about the use of
This PR updates all components to use the preferred
Links
PR in react repo establishing this as standard.
JIRA-ticket