-
Notifications
You must be signed in to change notification settings - Fork 5
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
Port components to ts 2 #2710
Port components to ts 2 #2710
Conversation
c36f86b
to
c7dec46
Compare
aria-label="close" | ||
> | ||
× | ||
</button> | ||
); | ||
} | ||
|
||
export function FooterDialog({isOpen, title, children, className}) { |
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 used anymore!
import cn from 'classnames'; | ||
import './form-elements.scss'; | ||
|
||
export function StyledCheckbox({name, value, checked, onClick, forwardRef}) { |
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.
Nothing uses these anymore.
@@ -74,6 +74,7 @@ global.fetch = jest.fn().mockImplementation((...args) => { | |||
const isInstitutionalPartnership = (/pages\/institutional-partners/).test(args[0]); | |||
const isKinetic = args[0].endsWith('kinetic/'); | |||
const isHomepage = (/openstax-homepage/).test(args[0]); | |||
const isImage = args[0].includes('/api/images/'); |
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.
Tests were noisy because the image paths weren't recognized properly
@@ -4,6 +4,12 @@ import './helpers/mock-lazyload'; | |||
import {LocalStorage} from 'node-localstorage'; | |||
import ReactModal from 'react-modal'; | |||
|
|||
/* eslint-disable */ |
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 needs to be set in a bunch of tests the way it is in renewal-form.test.
c7dec46
to
63be871
Compare
CORE-734
Most of the files came through as renames, so you can see the changes in "Files changed".
For form-checkboxgroup and form-elements, you may want to look at the individual commits to see the post-rename changes.