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

refactor: add typescript types to togglesmall and portal #17712

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Gururajj77
Copy link
Contributor

@Gururajj77 Gururajj77 commented Oct 10, 2024

Closes #17699
Closes #17698

added typescript types to ToggleSmall and Portal component.

Changelog

New

  • new ToggleSmallSkeletopProps and PortalPropsto the components.

Testing / Reviewing

no test should fail because of this.

@Gururajj77 Gururajj77 requested a review from a team as a code owner October 10, 2024 12:44
Copy link

netlify bot commented Oct 10, 2024

Deploy Preview for carbon-elements ready!

Name Link
🔨 Latest commit 0581772
🔍 Latest deploy log https://app.netlify.com/sites/carbon-elements/deploys/6707cc1551f9680008ca3dfa
😎 Deploy Preview https://deploy-preview-17712--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.

Copy link

netlify bot commented Oct 10, 2024

Deploy Preview for v11-carbon-react ready!

Name Link
🔨 Latest commit 0581772
🔍 Latest deploy log https://app.netlify.com/sites/v11-carbon-react/deploys/6707cc159fed520009b74024
😎 Deploy Preview https://deploy-preview-17712--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.

Copy link

netlify bot commented Oct 10, 2024

Deploy Preview for carbon-elements ready!

Name Link
🔨 Latest commit dc70db7
🔍 Latest deploy log https://app.netlify.com/sites/carbon-elements/deploys/670894e40bda42000824783a
😎 Deploy Preview https://deploy-preview-17712--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.

Copy link

netlify bot commented Oct 10, 2024

Deploy Preview for v11-carbon-react ready!

Name Link
🔨 Latest commit dc70db7
🔍 Latest deploy log https://app.netlify.com/sites/v11-carbon-react/deploys/670894e445f6180008837cdc
😎 Deploy Preview https://deploy-preview-17712--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.

Copy link

codecov bot commented Oct 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.95%. Comparing base (8ec84a4) to head (dc70db7).
Report is 10 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #17712      +/-   ##
==========================================
+ Coverage   78.33%   78.95%   +0.61%     
==========================================
  Files         408      407       -1     
  Lines       14015    14012       -3     
  Branches     4324     4375      +51     
==========================================
+ Hits        10979    11063      +84     
+ Misses       2868     2783      -85     
+ Partials      168      166       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

* LICENSE file in the root directory of this source tree.
*/

import PropTypes from 'prop-types';
Copy link
Member

Choose a reason for hiding this comment

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

Portal isn't within /internal but isn't exported, so I agree removing proptypes is a good option here 👍

Comment on lines 1 to 6
/**
* Copyright IBM Corp. 2016, 2023
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
Copy link
Member

Choose a reason for hiding this comment

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

Did you remove the copyright info accidentally?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, sorry i missed them when copying from the js file

@Gururajj77 Gururajj77 changed the title refactor: add typescript types to togglesmall refactor: add typescript types to togglesmall and portal Oct 11, 2024
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.

Add TypeScript types: ToggleSmall Add TypeScript types: Portal
3 participants