Skip to content

fix: add dropdownicon to muiselect default props (#356) #384

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

Merged
merged 1 commit into from
Apr 2, 2025

Conversation

frano-m
Copy link
Contributor

@frano-m frano-m commented Apr 2, 2025

Tests pass with icon in Select default props in theme!

Closes #356.

image

Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request sets the default icon for MuiSelect by adding a DropDownIcon to the theme configuration, and removes the redundant explicit icon assignment in the Select component.

  • Adds an import and defaultProps for DropDownIcon in the theme file.
  • Removes the manual IconComponent assignment from the Select component.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/theme/common/components.ts Adds defaultProps with DropDownIcon to MuiSelect.
src/components/common/Form/components/Select/select.tsx Removes explicit IconComponent prop from MSelect.

@NoopDog NoopDog merged commit de68df4 into main Apr 2, 2025
2 checks passed
@frano-m frano-m deleted the fran/356-theme branch April 2, 2025 23:08
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 DropDownIcon to MuiSelect default props
2 participants