mirror of
https://github.com/roleypoly/roleypoly-v1.git
synced 2025-04-25 04:09:12 +00:00
[ui/discord-guild-pic]: hacky: change derived state props to any
This commit is contained in:
parent
c1bdc9ddc9
commit
a81dfa84c0
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ export default class DiscordGuildPic extends React.Component<GuildPicProps, Guil
|
|||
ok: true
|
||||
}
|
||||
|
||||
static getDerivedStateFromProps (nextProps: GuildPicProps, prevState: GuildPicState): GuildPicState {
|
||||
static getDerivedStateFromProps (nextProps: any, prevState: GuildPicState): GuildPicState {
|
||||
return {
|
||||
...prevState,
|
||||
src: `https://cdn.discordapp.com/icons/${nextProps.id}/${nextProps.icon}.png`
|
||||
|
|
Loading…
Add table
Reference in a new issue