-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
chore: Moves Modal to the components folder #14130
chore: Moves Modal to the components folder #14130
Conversation
Codecov Report
@@ Coverage Diff @@
## master #14130 +/- ##
==========================================
+ Coverage 79.47% 79.87% +0.39%
==========================================
Files 944 944
Lines 47914 47914
Branches 6067 6067
==========================================
+ Hits 38082 38273 +191
+ Misses 9702 9517 -185
+ Partials 130 124 -6
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
@@ -20,7 +20,7 @@ import React, { FunctionComponent, useEffect, useRef, useState } from 'react'; | |||
import { styled, t } from '@superset-ui/core'; | |||
|
|||
import Icon from 'src//components/Icon'; | |||
import StyledModal from 'src/common/components/Modal'; | |||
import StyledModal from 'src/components/Modal'; |
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.
Not in love with this name (it's inconsistent with the other implementations) which is why I'm not really into default exports, personally. Not a concern for this PR, just whining :)
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.
Don't worry! My next step after organizing the folder will be to create an index
file and export all components using named exports 😉. For now, I'll rename it to Modal
.
@@ -19,7 +19,7 @@ | |||
import { t } from '@superset-ui/core'; | |||
import React, { FC } from 'react'; | |||
import { useDispatch, useSelector } from 'react-redux'; | |||
import { StyledModal } from 'src/common/components/Modal'; | |||
import { StyledModal } from 'src/components/Modal'; |
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.
This makes my prior comment even more valid, I think... if there's a named StyledModal
export, we should NOT bring in the default export as StyledModal
. Anyway...
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.
Totally agree. The default export and StyleModal
have different implementations.
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, needs rebase
d8f795a
to
ab51acd
Compare
ab51acd
to
35b2e3d
Compare
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.
LGTG!
SUMMARY
Moves
Modal
to the components folder.This work is part of SIP-61
@rusackas @junlincc
TEST PLAN
1 - Execute all tests
2 - All tests should pass
ADDITIONAL INFORMATION