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(DataSpreadsheet): implement typescript types #5230

Merged

Conversation

makafsal
Copy link
Member

Closes #5118 #5119 #5120

What did you change?

packages/ibm-products/src/components/DataSpreadsheet/DataSpreadsheet.tsx
packages/ibm-products/src/components/DataSpreadsheet/DataSpreadsheetHeader.tsx
packages/ibm-products/src/components/DataSpreadsheet/DataSpreadsheetBody.tsx

How did you test and verify your work?

storybook

@makafsal makafsal requested a review from a team as a code owner May 15, 2024 09:32
@makafsal makafsal requested review from davidmenendez and matthewgallo and removed request for a team May 15, 2024 09:32
Copy link

netlify bot commented May 15, 2024

Deploy Preview for carbon-for-ibm-products ready!

Name Link
🔨 Latest commit 0198282
🔍 Latest deploy log https://app.netlify.com/sites/carbon-for-ibm-products/deploys/66458baecbbed700082ed093
😎 Deploy Preview https://deploy-preview-5230--carbon-for-ibm-products.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
Contributor

@davidmenendez davidmenendez left a comment

Choose a reason for hiding this comment

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

looks good. just one small comment!

Copy link
Member

@matthewgallo matthewgallo left a comment

Choose a reason for hiding this comment

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

Great job on this! This is a huge component with a lot of functionality. Can you break out the types for ActiveCellCoordinates, Column and possibly even PrevState into a separate type utility and use them across the DataSpreadsheet, DataSpreadsheetBody, and DataSpreadsheetHeader to reduce duplication?

@matthewgallo matthewgallo added this pull request to the merge queue May 16, 2024
Merged via the queue into carbon-design-system:main with commit 01baec0 May 16, 2024
16 checks passed
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.

Add Typescript types to Dataspreadsheet
3 participants