-
Notifications
You must be signed in to change notification settings - Fork 313
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
refactor: Upgrade react and react-dom to v16.8 and refactor Avatar #1171
Changes from all commits
bf0bb11
f1f1074
572a203
24c141e
a056923
0ecf906
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -164,10 +164,6 @@ describe('elements/content-sidebar/ContentSidebar', () => { | |
}); | ||
|
||
test('should set the state with the file and view and then call fetchMetadata', () => { | ||
wrapper = getWrapper(); | ||
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. unnecessary due to beforeEach, also was causing a random failure |
||
instance = wrapper.instance(); | ||
instance.setState = setState; | ||
|
||
instance.fetchMetadata = jest.fn(); | ||
instance.fetchFileSuccessCallback(file); | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -73,12 +73,7 @@ class Assignees extends React.Component<Props> { | |
/> | ||
} | ||
> | ||
<AssigneeStatus | ||
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. for whatever reason, the |
||
status={status} | ||
user={target} | ||
getAvatarUrl={getAvatarUrl} | ||
data-testid="task-assignment-status" | ||
/> | ||
<AssigneeStatus status={status} user={target} getAvatarUrl={getAvatarUrl} /> | ||
</Tooltip> | ||
); | ||
}); | ||
|
@@ -90,7 +85,6 @@ class Assignees extends React.Component<Props> { | |
className="bcs-task-assignment-list-item-avatar" | ||
user={target} | ||
getAvatarUrl={getAvatarUrl} | ||
data-testid="task-assignment-status" | ||
/> | ||
<AssignmentDetails | ||
className="bcs-task-assignment-list-item-details" | ||
|
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.
Has FTL discussed adding the lint plugin for hooks?
https://www.npmjs.com/package/eslint-plugin-react-hooks
https://reactjs.org/docs/hooks-overview.html#rules-of-hooks
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.
yes, we will be adding this plugin. I'll discuss it at the next FTL meeting but it'll be an update to @box/frontend