ui/GuildPic: remove s-c variant

This commit is contained in:
41666 2019-03-30 09:16:43 -05:00
parent c3d50e5434
commit 77bf715b7b
No known key found for this signature in database
GPG key ID: BC51D07640DC10AF

View file

@ -19,7 +19,7 @@ const Fallback = styled.div`
justify-content: center;
align-items: center;
background-color: hsl(${(props: any) => '' + (props.serverName.codePointAt(0) % 360)},50%,50%);
background-color: var(--fallback-color);
`
export default class DiscordGuildPic extends React.Component<GuildPicProps, GuildPicState> {
@ -34,7 +34,7 @@ export default class DiscordGuildPic extends React.Component<GuildPicProps, Guil
renderFallback () {
const { name, id, icon, ...rest } = this.props
return <Fallback serverName={name} {...rest}>{name[0]}</Fallback>
return <Fallback serverName={name} style={{ '--fallback-color': `hsl(${(name.codePointAt(0) % 360)},50%,50%)` }} {...rest}>{name[0]}</Fallback>
}
onError = () => {