-
Notifications
You must be signed in to change notification settings - Fork 70
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: Refactor RedirectBox to StudioRedirectBox #13908
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #13908 +/- ##
==========================================
- Coverage 95.13% 95.13% -0.01%
==========================================
Files 1677 1677
Lines 22238 22236 -2
Branches 2612 2612
==========================================
- Hits 21157 21155 -2
Misses 835 835
Partials 246 246 ☔ View full report in Codecov by Sentry. |
title, | ||
children, | ||
className: givenClassName, | ||
}: RedirectBoxProps): React.ReactElement => { | ||
}: StudioRedirectBoxProps): ReactElement => { | ||
const className = cn(classes.wrapper, givenClassName); |
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.
Should we use HTMLAttributes here? To ensure we stay consistent? Then we can need our "className" prop.
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 agree! 😄
children: <div />, | ||
}; | ||
|
||
describe('StudioRedirectBox', () => { |
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.
Ref. previous comment, then we can check that className is applied to root by using the test-utils for that. 😊
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.
Great work, I had some small stuff to look into 😊
Description
<RedirectBox />
to<StudioRedirectBox />
Related Issue(s)
RedirectBox
to@studio/components
#13859Verification