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

Convert Card View demo to TS #9359

Merged
merged 1 commit into from
Sep 13, 2023
Merged

Conversation

jenny-s51
Copy link
Contributor

@jenny-s51 jenny-s51 commented Jul 12, 2023

What: Towards #9124, Closes #9362

Additional issues: Waiting on #9322. Will rebase once #9322 is merged.

@patternfly-build
Copy link
Contributor

patternfly-build commented Jul 12, 2023

@jenny-s51 jenny-s51 force-pushed the iss9124_card-view branch from 7f162e2 to 758641f Compare July 14, 2023 14:39
@nicolethoen nicolethoen linked an issue Aug 2, 2023 that may be closed by this pull request
2 tasks
@jenny-s51 jenny-s51 force-pushed the iss9124_card-view branch 2 times, most recently from 8b6b498 to bbe51d3 Compare August 17, 2023 20:31
@wise-king-sullyman
Copy link
Contributor

Code looks good, but unless I'm misunderstanding something (not unlikely) shouldn't this update the markdown file to point to this new tsx file?

Copy link
Contributor

@tlabaj tlabaj left a comment

Choose a reason for hiding this comment

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

Is there additional work that is needed her? like deleting js in MD file and adding this new file?

Copy link
Contributor Author

@jenny-s51 jenny-s51 left a comment

Choose a reason for hiding this comment

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

@wise-king-sullyman @tlabaj yes, thanks! Updated

@wise-king-sullyman
Copy link
Contributor

Looks good to me other than the docs build failing CI.

export const CardViewBasic: React.FunctionComponent = () => {
const totalItemCount = 10;

const [cardData, setCardData] = React.useState(data);
Copy link
Contributor

Choose a reason for hiding this comment

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

looks like you are missing the import for data

@jenny-s51 jenny-s51 requested a review from tlabaj August 31, 2023 18:11
@tlabaj tlabaj merged commit d3270bb into patternfly:main Sep 13, 2023
@patternfly-build
Copy link
Contributor

Your changes have been released in:

  • @patternfly/react-code-editor@5.1.1-prerelease.10
  • @patternfly/react-core@5.1.1-prerelease.10
  • @patternfly/react-docs@6.1.1-prerelease.11
  • demo-app-ts@5.1.1-prerelease.9
  • @patternfly/react-table@5.1.1-prerelease.10

Thanks for your contribution! 🎉

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.

Convert card view demo to TS Primary Detail + Card View demos: convert to use hooks and function components
5 participants