mirror of
https://github.com/roleypoly/roleypoly-v1.git
synced 2025-04-25 12:19:10 +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
|
ok: true
|
||||||
}
|
}
|
||||||
|
|
||||||
static getDerivedStateFromProps (nextProps: GuildPicProps, prevState: GuildPicState): GuildPicState {
|
static getDerivedStateFromProps (nextProps: any, prevState: GuildPicState): GuildPicState {
|
||||||
return {
|
return {
|
||||||
...prevState,
|
...prevState,
|
||||||
src: `https://cdn.discordapp.com/icons/${nextProps.id}/${nextProps.icon}.png`
|
src: `https://cdn.discordapp.com/icons/${nextProps.id}/${nextProps.icon}.png`
|
||||||
|
|
Loading…
Add table
Reference in a new issue