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

fix(FileUploaderDropContainer): allow undefined value for labelText #15069

Conversation

lewandom
Copy link
Contributor

Fixes TypeScript type definitions for the FileUploaderDropContainer component: makes labelText prop optional, to match component behavior (defaults set) and PropTypes definition.

Changelog

Changed

  • FileUploaderDropContainer component no longer requires setting labelText prop when used in TypeScript project

Testing / Reviewing

In a TypeScript project, using FileUploaderDropContainer component properly resorts to using default value for labelText prop.

@lewandom lewandom requested a review from a team as a code owner October 30, 2023 18:49
@netlify
Copy link

netlify bot commented Oct 30, 2023

Deploy Preview for v11-carbon-react ready!

Name Link
🔨 Latest commit 0041f3a
🔍 Latest deploy log https://app.netlify.com/sites/v11-carbon-react/deploys/6541655d9550620007d1e8a9
😎 Deploy Preview https://deploy-preview-15069--v11-carbon-react.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@netlify
Copy link

netlify bot commented Oct 30, 2023

Deploy Preview for carbon-elements ready!

Name Link
🔨 Latest commit 0041f3a
🔍 Latest deploy log https://app.netlify.com/sites/carbon-elements/deploys/6541655df135f50008755d88
😎 Deploy Preview https://deploy-preview-15069--carbon-elements.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@github-actions github-actions bot added this pull request to the merge queue Oct 30, 2023
@tay1orjones tay1orjones removed this pull request from the merge queue due to the queue being cleared Oct 31, 2023
@tay1orjones tay1orjones enabled auto-merge October 31, 2023 20:36
@tay1orjones tay1orjones added this pull request to the merge queue Oct 31, 2023
Merged via the queue into carbon-design-system:main with commit cb2a38f Oct 31, 2023
14 checks passed
@lewandom lewandom deleted the ts-fileuploaderdropcontainer-labeltext-undefined branch November 1, 2023 10:33
tay1orjones added a commit to tay1orjones/carbon that referenced this pull request Nov 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants