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;
|
link: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export default class IntegrationOption extends React.PureComponent <Props> {
|
const IntegrationOption = ({image, title, description, link}: Props) => {
|
||||||
render() {
|
|
||||||
const {image, title, description, link} = this.props;
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Link
|
<Link
|
||||||
to={link}
|
to={link}
|
||||||
@@ -33,5 +30,6 @@ export default class IntegrationOption extends React.PureComponent <Props> {
|
|||||||
</div>
|
</div>
|
||||||
</Link>
|
</Link>
|
||||||
);
|
);
|
||||||
}
|
};
|
||||||
}
|
|
||||||
|
export default React.memo(IntegrationOption);
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user