Skip to content

Commit

Permalink
Infer types
Browse files Browse the repository at this point in the history
  • Loading branch information
atomiks committed Oct 10, 2024
1 parent 826f4b0 commit f2434b5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/mui-base/src/utils/popupOpenStateMapping.ts
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
import type { CustomStyleHookMapping } from './getStyleHookProps';

export const triggerOpenStateMapping: CustomStyleHookMapping<{ open: boolean }> = {
open(value: boolean): Record<string, string> {
open(value) {
if (value) {
return {
'data-popup-open': '',
};
}
return {};
return null;
},
};

export const popupOpenStateMapping: CustomStyleHookMapping<{ open: boolean }> = {
open(value: boolean): Record<string, string> {
open(value) {
if (value) {
return {
'data-open': '',
};
}
return {};
return null;
},
};

0 comments on commit f2434b5

Please sign in to comment.