Skip to content
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

Split drag and drop container into different files #4880

Merged
merged 6 commits into from
Oct 26, 2023
Merged

Conversation

sroy3
Copy link
Contributor

@sroy3 sroy3 commented Oct 24, 2023

This is to make #4867 easier

Demo to show that every thing is the same:

Screen.Recording.2023-10-24.at.1.55.07.PM.mov

@sroy3 sroy3 self-assigned this Oct 24, 2023
@sroy3 sroy3 marked this pull request as ready for review October 25, 2023 19:15
isDiv?: boolean
}

export const DragDropItem: React.FC<DragDropItemProps> = ({
Copy link

Choose a reason for hiding this comment

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

Similar blocks of code found in 2 locations. Consider refactoring.

)
}
const wrappedItems = items
.map(draggable => {
Copy link

Choose a reason for hiding this comment

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

Function wrappedItems has 42 lines of code (exceeds 40 allowed). Consider refactoring.

Copy link
Contributor

@julieg18 julieg18 left a comment

Choose a reason for hiding this comment

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

Looks good!

@sroy3 sroy3 enabled auto-merge (squash) October 26, 2023 13:49
@codeclimate
Copy link

codeclimate bot commented Oct 26, 2023

Code Climate has analyzed commit dade6e9 and detected 3 issues on this pull request.

Here's the issue category breakdown:

Category Count
Complexity 1
Duplication 2

The test coverage on the diff in this pull request is 100.0% (85% is the threshold).

This pull request will bring the total coverage in the repository to 95.1% (0.0% change).

View more on Code Climate.

@sroy3 sroy3 merged commit 43f014b into main Oct 26, 2023
7 of 8 checks passed
@sroy3 sroy3 deleted the split-drop-and-drop branch October 26, 2023 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants