diff --git a/webapp/channels/src/components/create_team/create_team.test.tsx b/webapp/channels/src/components/create_team/create_team.test.tsx
index b61074859c..57bfaa55ec 100644
--- a/webapp/channels/src/components/create_team/create_team.test.tsx
+++ b/webapp/channels/src/components/create_team/create_team.test.tsx
@@ -5,7 +5,7 @@ import {shallow} from 'enzyme';
import React from 'react';
import {FormattedMessage} from 'react-intl';
-import CreateTeam from './create_team';
+import {CreateTeam} from './create_team';
describe('component/create_team', () => {
const baseProps = {
@@ -25,6 +25,7 @@ describe('component/create_team', () => {
},
history: jest.fn(),
location: jest.fn(),
+ intl: {formatMessage: jest.fn()},
} as any;
test('should match snapshot default', () => {
diff --git a/webapp/channels/src/components/create_team/create_team.tsx b/webapp/channels/src/components/create_team/create_team.tsx
index 1d30831a76..c1c14988f4 100644
--- a/webapp/channels/src/components/create_team/create_team.tsx
+++ b/webapp/channels/src/components/create_team/create_team.tsx
@@ -2,7 +2,7 @@
// See LICENSE.txt for license information.
import React from 'react';
-import {FormattedMessage} from 'react-intl';
+import {FormattedMessage, injectIntl, type IntlShape} from 'react-intl';
import {Route, Switch, Redirect} from 'react-router-dom';
import type {RouteComponentProps} from 'react-router-dom';
@@ -48,6 +48,7 @@ export type Props = {
isCloud: boolean;
isFreeTrial: boolean;
usageDeltas: CloudUsage;
+ intl: IntlShape;
};
type State = {
@@ -55,7 +56,7 @@ type State = {
wizard: string;
};
-export default class CreateTeam extends React.PureComponent
{
+export class CreateTeam extends React.PureComponent {
public constructor(props: Props & RouteComponentProps) {
super(props);
@@ -65,6 +66,16 @@ export default class CreateTeam extends React.PureComponent {
this.setState(state);
this.props.history.push('/create_team/' + state.wizard);
@@ -156,3 +167,5 @@ export default class CreateTeam extends React.PureComponent