Skip to content

Conversation

@smith-m
Copy link

@smith-m smith-m commented Jul 25, 2023

backstage

Tasks

Update TypeScript definitions

If your project uses TypeScript, you will need to update your @types/react and @types/react-dom dependencies to the latest versions.

Instructions

  • Explicitly list the 'children' prop when defining props
    • microsite/src/pages/on-demand/_onDemandCard.tsx

Upgrade repo

npm upgrade

Instructions

  • Upgrade repo library
    • migrations/backstage/backstage/backstage/microsite/package.json
    • migrations/backstage/backstage/backstage/microsite/yarn.lock

Errors

smith-m added 3 commits July 25, 2023 10:48
The code change in this git diff is about adding a new prop to the OnDemandCard component in React.

1. A new prop named 'children' of type 'React.ReactNode' is added to the props definition of the OnDemandCard component. This prop is optional as indicated by the '?' symbol. This means that the 'children' prop can be used to pass any valid React node (like JSX elements, strings, numbers, etc.) as children to the OnDemandCard component. If no 'children' prop is passed, it will be undefined.

2. No other changes are made to the component's implementation, meaning the 'children' prop is not yet used within the component. This change only extends the component's API to accept this new prop. Future changes might use this prop to render additional content within the OnDemandCard component.
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