Convert ./components/integrations/integration_option.tsx to functional component (#24806)
* Convert ./components/integrations/integration_option.tsx to functional component * update integration_option component * improve integration_option component
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
89eae8babe
Коммит
a2475a46a6
@@ -11,10 +11,7 @@ type Props = {
|
||||
link: string;
|
||||
}
|
||||
|
||||
export default class IntegrationOption extends React.PureComponent <Props> {
|
||||
render() {
|
||||
const {image, title, description, link} = this.props;
|
||||
|
||||
const IntegrationOption = ({image, title, description, link}: Props) => {
|
||||
return (
|
||||
<Link
|
||||
to={link}
|
||||
@@ -33,5 +30,6 @@ export default class IntegrationOption extends React.PureComponent <Props> {
|
||||
</div>
|
||||
</Link>
|
||||
);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
export default React.memo(IntegrationOption);
|
||||
|
||||
Ссылка в новой задаче
Block a user