mirror of
https://github.com/roleypoly/roleypoly-v1.git
synced 2025-06-15 18:09:09 +00:00
first sync
This commit is contained in:
parent
5d6f382c8a
commit
a4acc441ea
52 changed files with 28315 additions and 0 deletions
21
UI/src/components/servers/ServerCard.js
Normal file
21
UI/src/components/servers/ServerCard.js
Normal file
|
@ -0,0 +1,21 @@
|
|||
import React, { Component } from 'react'
|
||||
import { NavLink } from 'react-router-dom'
|
||||
import Radium from 'radium'
|
||||
import './ServerCard.css'
|
||||
|
||||
class ServerCard extends Component {
|
||||
render () {
|
||||
const { server } = this.props
|
||||
return <NavLink className='server-list__item' activeClassName='active' to={`/s/${server.id}`}>
|
||||
<div className='server-list__item__icon'>
|
||||
<img src={`https://cdn.discordapp.com/icons/${server.id}/${server.icon}.png`} />
|
||||
</div>
|
||||
<div className='server-list__item__info'>
|
||||
<b>{server.name}</b><br />
|
||||
<span>{server.name}</span>
|
||||
</div>
|
||||
</NavLink>
|
||||
}
|
||||
}
|
||||
|
||||
export default Radium(ServerCard)
|
Loading…
Add table
Add a link
Reference in a new issue