[TAPS-0000] Migrate Button and Switch to BASE UI#4906
[TAPS-0000] Migrate Button and Switch to BASE UI#4906OleksandrNechai wants to merge 4 commits intomasterfrom
Conversation
|
|
📖 Storybook Preview 🚀 Your Storybook preview is ready: View Storybook 📍 Preview URL: This preview is updated automatically when you push changes to this PR. |
|
📖 Storybook Preview 🚀 Your Storybook preview is ready: View Storybook 📍 Preview URL: This preview is updated automatically when you push changes to this PR. |
| return ( | ||
| valueType === 'string' || | ||
| valueType === 'function' || | ||
| (valueType === 'object' && value !== null) | ||
| ) | ||
| } |
There was a problem hiding this comment.
looks like a bad pattern to me 🤔 and we would need to do that in other components too most likely, so I would think it through carefully
There was a problem hiding this comment.
wdym? it does same thing as before but more thoroughly. We can keep the code as it was though.
| onClick={getClickHandler(loading, onClick)} | ||
| ref={ref as React.Ref<HTMLElement>} | ||
| onClick={ | ||
| getClickHandler(loading, onClick) as BaseUIButton.Props['onClick'] |
There was a problem hiding this comment.
type casing, most likely unnecessary

Migrated Button and Switch components from @mui/base to @base-ui/react.
User prompt to Codex:
After Happo failed, follow up: