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: Implement Custom Style Hook for Card component #33912

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
removed multiple exports
  • Loading branch information
terynkum committed Feb 27, 2025
commit 72b72a83cf2e203699f8c28ca620bcfab252ef01
Original file line number Diff line number Diff line change
@@ -25,13 +25,13 @@ const useCardStyle = makeStyles({
},
});

export const useCardStyles = (state: unknown) => {
const useCardStyles = (state: unknown) => {
const cardStyles = useCardStyle();
const componentState = state as CardState;
componentState.root.className = mergeClasses(componentState.root.className, cardStyles.root);
};

export const CUSTOM_STYLE_HOOKS: FluentProviderCustomStyleHooks = {
const CUSTOM_STYLE_HOOKS: FluentProviderCustomStyleHooks = {
// eslint-disable-next-line @typescript-eslint/naming-convention
useCardStyles_unstable: useCardStyles,
};