diff --git a/webapp/channels/src/components/admin_console/group_settings/group_details/__snapshots__/group_users.test.tsx.snap b/webapp/channels/src/components/admin_console/group_settings/group_details/__snapshots__/group_users.test.tsx.snap index 87bea19cf9..c7fdaa5c27 100644 --- a/webapp/channels/src/components/admin_console/group_settings/group_details/__snapshots__/group_users.test.tsx.snap +++ b/webapp/channels/src/components/admin_console/group_settings/group_details/__snapshots__/group_users.test.tsx.snap @@ -220,9 +220,7 @@ exports[`components/admin_console/group_settings/group_details/GroupUsers should onClick={[Function]} type="button" > - + @@ -448,9 +446,7 @@ exports[`components/admin_console/group_settings/group_details/GroupUsers should onClick={[Function]} type="button" > - + @@ -676,9 +672,7 @@ exports[`components/admin_console/group_settings/group_details/GroupUsers should onClick={[Function]} type="button" > - + @@ -864,9 +858,7 @@ exports[`components/admin_console/group_settings/group_details/GroupUsers should onClick={[Function]} type="button" > - + @@ -1092,9 +1084,7 @@ exports[`components/admin_console/group_settings/group_details/GroupUsers should onClick={[Function]} type="button" > - + @@ -1362,9 +1352,7 @@ exports[`components/admin_console/group_settings/group_details/GroupUsers should onClick={[Function]} type="button" > - + diff --git a/webapp/channels/src/components/admin_console/group_settings/groups_list/__snapshots__/groups_list.test.tsx.snap b/webapp/channels/src/components/admin_console/group_settings/groups_list/__snapshots__/groups_list.test.tsx.snap index 7bcee44def..385a9f6344 100644 --- a/webapp/channels/src/components/admin_console/group_settings/groups_list/__snapshots__/groups_list.test.tsx.snap +++ b/webapp/channels/src/components/admin_console/group_settings/groups_list/__snapshots__/groups_list.test.tsx.snap @@ -318,9 +318,7 @@ exports[`components/admin_console/group_settings/GroupsList.tsx should match sna onClick={[Function]} type="button" > - + @@ -445,9 +443,7 @@ exports[`components/admin_console/group_settings/GroupsList.tsx should match sna onClick={[Function]} type="button" > - + @@ -572,9 +568,7 @@ exports[`components/admin_console/group_settings/GroupsList.tsx should match sna onClick={[Function]} type="button" > - + @@ -734,9 +728,7 @@ exports[`components/admin_console/group_settings/GroupsList.tsx should match sna onClick={[Function]} type="button" > - + @@ -987,9 +979,7 @@ exports[`components/admin_console/group_settings/GroupsList.tsx should match sna onClick={[Function]} type="button" > - + @@ -1240,9 +1230,7 @@ exports[`components/admin_console/group_settings/GroupsList.tsx should match sna onClick={[Function]} type="button" > - + @@ -1402,9 +1390,7 @@ exports[`components/admin_console/group_settings/GroupsList.tsx should match sna onClick={[Function]} type="button" > - + @@ -1591,9 +1577,7 @@ exports[`components/admin_console/group_settings/GroupsList.tsx should match sna onClick={[Function]} type="button" > - + diff --git a/webapp/channels/src/components/admin_console/system_user_detail/team_list/__snapshots__/abstract_list.test.tsx.snap b/webapp/channels/src/components/admin_console/system_user_detail/team_list/__snapshots__/abstract_list.test.tsx.snap index 30e9393f36..aa2291da36 100644 --- a/webapp/channels/src/components/admin_console/system_user_detail/team_list/__snapshots__/abstract_list.test.tsx.snap +++ b/webapp/channels/src/components/admin_console/system_user_detail/team_list/__snapshots__/abstract_list.test.tsx.snap @@ -256,9 +256,7 @@ exports[`admin_console/system_user_detail/team_list/AbstractList should match sn onClick={[Function]} type="button" > - + @@ -483,9 +481,7 @@ exports[`admin_console/system_user_detail/team_list/AbstractList should match sn onClick={[Function]} type="button" > - + @@ -598,9 +594,7 @@ exports[`admin_console/system_user_detail/team_list/AbstractList should match sn onClick={[Function]} type="button" > - + diff --git a/webapp/channels/src/components/admin_console/team_channel_settings/__snapshots__/abstract_list.test.tsx.snap b/webapp/channels/src/components/admin_console/team_channel_settings/__snapshots__/abstract_list.test.tsx.snap index 80788946f3..23817ede6e 100644 --- a/webapp/channels/src/components/admin_console/team_channel_settings/__snapshots__/abstract_list.test.tsx.snap +++ b/webapp/channels/src/components/admin_console/team_channel_settings/__snapshots__/abstract_list.test.tsx.snap @@ -120,9 +120,7 @@ exports[`admin_console/team_channel_settings/AbstractList should match snapshot, disabled={true} type="button" > - + diff --git a/webapp/channels/src/components/product_notices_modal/__snapshots__/product_notices.test.tsx.snap b/webapp/channels/src/components/product_notices_modal/__snapshots__/product_notices.test.tsx.snap index 17fbf9d3d7..29c7496a29 100644 --- a/webapp/channels/src/components/product_notices_modal/__snapshots__/product_notices.test.tsx.snap +++ b/webapp/channels/src/components/product_notices_modal/__snapshots__/product_notices.test.tsx.snap @@ -131,9 +131,7 @@ exports[`ProductNoticesModal Should match snapshot for system admin notice 1`] = defaultMessage="Next" id="generic.next" /> - + } enforceFocus={true} diff --git a/webapp/channels/src/components/widgets/icons/fa_next_icon.tsx b/webapp/channels/src/components/widgets/icons/fa_next_icon.tsx index 542682c5e0..331a568548 100644 --- a/webapp/channels/src/components/widgets/icons/fa_next_icon.tsx +++ b/webapp/channels/src/components/widgets/icons/fa_next_icon.tsx @@ -1,28 +1,28 @@ // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. +import classNames from 'classnames'; import React from 'react'; +import {defineMessage} from 'react-intl'; import LocalizedIcon from 'components/localized_icon'; -import {t} from 'utils/i18n'; - type Props = { - additionalClassName: string | null; + additionalClassName?: string; } -export default class NextIcon extends React.PureComponent { - public static defaultProps: Props = { - additionalClassName: null, - }; +const iconTitle = defineMessage({ + id: 'generic_icons.next', + defaultMessage: 'Next Icon', +}); - public render(): JSX.Element { - const className = 'icon icon-chevron-right' + (this.props.additionalClassName ? ' ' + this.props.additionalClassName : ''); - return ( - - ); - } -} +const NextIcon = ({additionalClassName}: Props) => { + return ( + + ); +}; + +export default React.memo(NextIcon);