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

Port components to ts 2 #2710

Merged
merged 10 commits into from
Mar 4, 2025
Merged

Port components to ts 2 #2710

merged 10 commits into from
Mar 4, 2025

Conversation

RoyEJohnson
Copy link
Contributor

@RoyEJohnson RoyEJohnson commented Feb 26, 2025

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.

@RoyEJohnson RoyEJohnson force-pushed the port-components-to-ts-2 branch from c36f86b to c7dec46 Compare February 26, 2025 17:12
aria-label="close"
>
×
</button>
);
}

export function FooterDialog({isOpen, title, children, className}) {
Copy link
Contributor Author

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}) {
Copy link
Contributor Author

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/');
Copy link
Contributor Author

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 */
Copy link
Contributor Author

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.

@RoyEJohnson RoyEJohnson force-pushed the port-components-to-ts-2 branch from c7dec46 to 63be871 Compare March 4, 2025 15:26
@RoyEJohnson RoyEJohnson merged commit a8c5c19 into main Mar 4, 2025
1 check passed
@RoyEJohnson RoyEJohnson deleted the port-components-to-ts-2 branch March 4, 2025 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants