Skip to content

Commit de4608f

Browse files
authored
fix(MessageViewButton): correct tooltips (#6766)
Fixes #6594
1 parent 1721382 commit de4608f

File tree

1 file changed

+3
-3
lines changed
  • packages/main/src/components/MessageViewButton

1 file changed

+3
-3
lines changed

packages/main/src/components/MessageViewButton/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ const getTypes = (type: MessageViewButtonProptypes['type']): Types => {
3939
case ValueState.Negative:
4040
return { icon: errorIcon, i18nLabel: ERROR_TYPE };
4141
case ValueState.Positive:
42-
return { icon: sysEnter2Icon, i18nLabel: WARNING_TYPE };
42+
return { icon: sysEnter2Icon, i18nLabel: SUCCESS_TYPE };
4343
case ValueState.Critical:
44-
return { icon: alertIcon, i18nLabel: INFORMATION_TYPE };
44+
return { icon: alertIcon, i18nLabel: WARNING_TYPE };
4545
default:
46-
return { icon: informationIcon, i18nLabel: SUCCESS_TYPE };
46+
return { icon: informationIcon, i18nLabel: INFORMATION_TYPE };
4747
}
4848
};
4949

0 commit comments

Comments
 (0)