fix(striker-ui): add Message type

main
Tsu-ba-me 2 years ago
parent 691c54875a
commit de73fe47c9
  1. 4
      striker-ui/components/MessageBox.tsx

@ -36,6 +36,8 @@ type MessageBoxOptionalProps = {
type MessageBoxProps = MUIBoxProps & MessageBoxOptionalProps; type MessageBoxProps = MUIBoxProps & MessageBoxOptionalProps;
type Message = Pick<MessageBoxProps, 'children' | 'type'>;
const MESSAGE_BOX_CLASS_PREFIX = 'MessageBox'; const MESSAGE_BOX_CLASS_PREFIX = 'MessageBox';
const MESSAGE_BOX_CLASSES: Record<MessageBoxType, string> = { const MESSAGE_BOX_CLASSES: Record<MessageBoxType, string> = {
@ -171,6 +173,6 @@ const MessageBox: FC<MessageBoxProps> = ({
MessageBox.defaultProps = MESSAGE_BOX_DEFAULT_PROPS; MessageBox.defaultProps = MESSAGE_BOX_DEFAULT_PROPS;
export type { MessageBoxProps, MessageBoxType }; export type { Message, MessageBoxProps, MessageBoxType };
export default MessageBox; export default MessageBox;

Loading…
Cancel
Save