diff --git a/packages/app/config/index.js b/packages/app/config/index.js index 80d53889..c3b4e14b 100755 --- a/packages/app/config/index.js +++ b/packages/app/config/index.js @@ -51,7 +51,7 @@ export default { ], logo: { alt: "/logo_alt.svg", - full: "/logo_full.svg", + full: "/comty_logo_full.svg", ragestudio_alt: "https://storage.ragestudio.net/rstudio/branding/ragestudio/iso/ragestudio.svg", ragestudio_full: "https://storage.ragestudio.net/rstudio/branding/ragestudio/labeled/ragestudio-labeled_white.svg", }, diff --git a/packages/app/src/components/PostCard/index.jsx b/packages/app/src/components/PostCard/index.jsx index 30cf6fee..c63a4a11 100755 --- a/packages/app/src/components/PostCard/index.jsx +++ b/packages/app/src/components/PostCard/index.jsx @@ -12,7 +12,7 @@ import PostAttachments from "./components/attachments" import "./index.less" -export default class PostCard extends React.Component { +export default class PostCard extends React.PureComponent { state = { loading: true, data: this.props.data ?? {}, @@ -116,7 +116,7 @@ export default class PostCard extends React.Component { app.eventBus.off(`post.${this.state.data._id}.update`, this.onClickEdit) // remove the listener - app.cores.api.listenEvent(`post.${this.state.data._id}.likes.update`, this.onLikesUpdate) + app.cores.api.unlistenEvent(`post.${this.state.data._id}.likes.update`, this.onLikesUpdate) } componentDidCatch = (error, info) => { @@ -145,7 +145,7 @@ export default class PostCard extends React.Component { } return