mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-11 03:24:16 +00:00
update full logo
This commit is contained in:
parent
30c12a9c40
commit
714a9fc68e
@ -51,7 +51,7 @@ export default {
|
|||||||
],
|
],
|
||||||
logo: {
|
logo: {
|
||||||
alt: "/logo_alt.svg",
|
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_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",
|
ragestudio_full: "https://storage.ragestudio.net/rstudio/branding/ragestudio/labeled/ragestudio-labeled_white.svg",
|
||||||
},
|
},
|
||||||
|
@ -12,7 +12,7 @@ import PostAttachments from "./components/attachments"
|
|||||||
|
|
||||||
import "./index.less"
|
import "./index.less"
|
||||||
|
|
||||||
export default class PostCard extends React.Component {
|
export default class PostCard extends React.PureComponent {
|
||||||
state = {
|
state = {
|
||||||
loading: true,
|
loading: true,
|
||||||
data: this.props.data ?? {},
|
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)
|
app.eventBus.off(`post.${this.state.data._id}.update`, this.onClickEdit)
|
||||||
|
|
||||||
// remove the listener
|
// 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) => {
|
componentDidCatch = (error, info) => {
|
||||||
@ -145,7 +145,7 @@ export default class PostCard extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return <div
|
return <div
|
||||||
key={this.state.data.key ?? this.state.data._id}
|
key={this.props.index ?? this.state.data._id}
|
||||||
id={this.state.data._id}
|
id={this.state.data._id}
|
||||||
className={classnames(
|
className={classnames(
|
||||||
"postCard",
|
"postCard",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user