From c234cc12386b221cb03e8a2ebc5bdeff616f879b Mon Sep 17 00:00:00 2001 From: Aditi Patel Date: Wed, 6 Dec 2023 01:27:02 -0600 Subject: [PATCH] [MM-56012] Convert ./components/admin_console/team_channel_settings/channel/channel_settings.tsx from Class Component to Function Component (#25634) --- .../channel/channel_settings.tsx | 61 ++++++++----------- 1 file changed, 25 insertions(+), 36 deletions(-) diff --git a/webapp/channels/src/components/admin_console/team_channel_settings/channel/channel_settings.tsx b/webapp/channels/src/components/admin_console/team_channel_settings/channel/channel_settings.tsx index 894a9afedc..d2c7d621f8 100644 --- a/webapp/channels/src/components/admin_console/team_channel_settings/channel/channel_settings.tsx +++ b/webapp/channels/src/components/admin_console/team_channel_settings/channel/channel_settings.tsx @@ -20,42 +20,31 @@ export interface ChannelSettingsState { total: number; } -export class ChannelsSettings extends React.PureComponent { - constructor(props: Props) { - super(props); - this.state = { - startCount: 0, - endCount: 1, - total: 0, - }; - } +export const ChannelsSettings = ({siteName}: Props) => { + return ( +
+ + + - render = () => { - return ( -
- - - - -
-
- - - -
+
+
+ + +
- ); - }; -} +
+ ); +};