From 426e4586940a77b1c1300fd53d5ca4175b7370b2 Mon Sep 17 00:00:00 2001 From: Robert Penner Date: Fri, 13 Dec 2024 23:39:06 +0000 Subject: [PATCH] chore(MessageBar): add todo comments --- .../src/components/MessageBarGroup/MessageBarGroup.types.ts | 1 + .../MessageBarGroup/useMessageBarGroupStyles.styles.ts | 2 ++ 2 files changed, 3 insertions(+) diff --git a/packages/react-components/react-message-bar/library/src/components/MessageBarGroup/MessageBarGroup.types.ts b/packages/react-components/react-message-bar/library/src/components/MessageBarGroup/MessageBarGroup.types.ts index dc0cbc00b1a75..9fb97fca8e9c3 100644 --- a/packages/react-components/react-message-bar/library/src/components/MessageBarGroup/MessageBarGroup.types.ts +++ b/packages/react-components/react-message-bar/library/src/components/MessageBarGroup/MessageBarGroup.types.ts @@ -18,6 +18,7 @@ export type MessageBarGroupProps = ComponentProps & { */ export type MessageBarGroupState = ComponentState & Pick & { + // TODO: deprecate these 2 obsolete props? enterStyles: string; exitStyles: string; children: React.ReactElement[]; diff --git a/packages/react-components/react-message-bar/library/src/components/MessageBarGroup/useMessageBarGroupStyles.styles.ts b/packages/react-components/react-message-bar/library/src/components/MessageBarGroup/useMessageBarGroupStyles.styles.ts index a7054fe773448..82fd1a0fec305 100644 --- a/packages/react-components/react-message-bar/library/src/components/MessageBarGroup/useMessageBarGroupStyles.styles.ts +++ b/packages/react-components/react-message-bar/library/src/components/MessageBarGroup/useMessageBarGroupStyles.styles.ts @@ -7,6 +7,7 @@ export const messageBarGroupClassNames: SlotClassNames = { root: 'fui-MessageBarGroup', }; +// TODO: delete this obsolete code to save bytes? /** * Styles for the root slot */ @@ -49,6 +50,7 @@ export const useMessageBarGroupStyles_unstable = (state: MessageBarGroupState): const styles = useStyles(); state.root.className = mergeClasses(messageBarGroupClassNames.root, state.root.className); + // TODO: delete these 2 lines to save bytes? state.enterStyles = mergeClasses(styles.base, styles.enter); state.exitStyles = mergeClasses(styles.base, styles.exit); return state;