[MM-56292] Convert ./components/widgets/icons/checkbox_partial_icon.tsx from Class Component to Function Component (#25764)
* [MM-56292] Convert `./components/widgets/icons/checkbox_partial_icon.tsx` from Class Component to Function Component * refactor: update snapshots
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
4fb3d7a349
Коммит
ab6e206a51
@@ -37,6 +37,6 @@ exports[`components/admin_console/permission_schemes_settings/permission_checkbo
|
|||||||
className="permission-check intermediate"
|
className="permission-check intermediate"
|
||||||
data-testid="uniqId-checked"
|
data-testid="uniqId-checked"
|
||||||
>
|
>
|
||||||
<CheckboxPartialIcon />
|
<Memo(CheckboxPartialIcon) />
|
||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
|
|||||||
@@ -1,11 +1,9 @@
|
|||||||
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
||||||
// See LICENSE.txt for license information.
|
// See LICENSE.txt for license information.
|
||||||
|
|
||||||
import React from 'react';
|
import React, {memo} from 'react';
|
||||||
|
|
||||||
export default class CheckboxPartialIcon extends React.PureComponent {
|
const CheckboxPartialIcon = () => (
|
||||||
render() {
|
|
||||||
return (
|
|
||||||
<svg
|
<svg
|
||||||
width='18px'
|
width='18px'
|
||||||
height='18px'
|
height='18px'
|
||||||
@@ -57,6 +55,6 @@ export default class CheckboxPartialIcon extends React.PureComponent {
|
|||||||
</g>
|
</g>
|
||||||
</g>
|
</g>
|
||||||
</svg>
|
</svg>
|
||||||
);
|
);
|
||||||
}
|
|
||||||
}
|
export default memo(CheckboxPartialIcon);
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user