mirror of
https://github.com/roleypoly/roleypoly-v1.git
synced 2025-06-15 18:09:09 +00:00
sync
This commit is contained in:
parent
13cd3bd4a0
commit
52cb96baa3
43 changed files with 3257 additions and 1072 deletions
|
@ -1,25 +1,25 @@
|
|||
import React, { Component } from 'react'
|
||||
import { NavLink } from 'react-router-dom'
|
||||
import Radium from 'radium'
|
||||
import './ServerCard.css'
|
||||
import './ServerCard.sass'
|
||||
|
||||
class ServerCard extends Component {
|
||||
render () {
|
||||
const { server: { server, id, gm, perms }, user } = this.props
|
||||
|
||||
let icon = ''
|
||||
|
||||
|
||||
if (perms.canManageRoles) {
|
||||
icon = <span title='Role Manager' uk-tooltip=''>🔰</span>
|
||||
icon = <span title='Role Manager' uk-tooltip='' role='img' aria-label='Role Manager'>🔰</span>
|
||||
}
|
||||
|
||||
if (perms.isAdmin) {
|
||||
icon = <span title='Server Admin' uk-tooltip=''>🔰⭐️</span>
|
||||
icon = <span title='Server Admin' uk-tooltip='' role='img' aria-label='Server Admin'>🔰⭐️</span>
|
||||
}
|
||||
|
||||
return <NavLink className='server-list__item' activeClassName='active' to={`/s/${id}`}>
|
||||
<div className='server-list__item__icon'>
|
||||
<img src={`https://cdn.discordapp.com/icons/${id}/${server.icon}.png`} />
|
||||
<img src={`https://cdn.discordapp.com/icons/${id}/${server.icon}.png`} alt={server.name} />
|
||||
</div>
|
||||
<div className='server-list__item__info'>
|
||||
<b>{server.name}</b><br />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue