change to ImmutablePureComponent

This commit is contained in:
Zoë Bijl
2025-10-20 18:51:55 +02:00
parent 7631089507
commit 2f1851e8f9
@@ -4,6 +4,8 @@ import React from "react";
import classNames from "classnames";
import { type List } from "immutable";
import ImmutablePropTypes from "react-immutable-proptypes";
import ImmutablePureComponent from "react-immutable-pure-component";
import { type Account } from "flavours/glitch/types/resources";
@@ -18,7 +20,7 @@ interface Props {
inline?: boolean,
}
export class DisplayName extends React.PureComponent<Props> {
export class DisplayName extends ImmutablePureComponent {
static propTypes = {
onChange: PropTypes.func.isRequired,
nameLayout: ImmutablePropTypes.map.isRequired,