[MM-54798] Convert ./components/widgets/separator/basic-separator.tsx to function component (#24788)

* chore(channels): convert basic separator to functional components

* chore: change to arrow function

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
Firmansyah Yanuar
2023-10-10 22:48:06 +07:00
коммит произвёл GitHub
родитель ca012fc375
Коммит e23fe22328

Просмотреть файл

@@ -9,9 +9,7 @@ type Props = {
children?: ReactNode; children?: ReactNode;
}; };
export default class BasicSeparator extends React.PureComponent<Props> { const BasicSeparator = ({children}: Props) => {
public render() {
const {children} = this.props;
return ( return (
<div <div
data-testid='basicSeparator' data-testid='basicSeparator'
@@ -25,5 +23,6 @@ export default class BasicSeparator extends React.PureComponent<Props> {
)} )}
</div> </div>
); );
} };
}
export default React.memo(BasicSeparator);