mirror of
https://github.com/roleypoly/roleypoly-v1.git
synced 2025-06-15 18:09:09 +00:00
UI: add real proptypes for immutable things
This commit is contained in:
parent
a8196de3c7
commit
6cc827d258
4 changed files with 19 additions and 6 deletions
|
@ -1,9 +1,15 @@
|
|||
import React, { Component } from 'react'
|
||||
import ImmutablePropTypes from 'react-immutable-proptypes'
|
||||
import { NavLink } from 'react-router-dom'
|
||||
import Radium from 'radium'
|
||||
import './ServerCard.sass'
|
||||
|
||||
class ServerCard extends Component {
|
||||
static propTypes = {
|
||||
user: ImmutablePropTypes.map.isRequired,
|
||||
server: ImmutablePropTypes.map.isRequired,
|
||||
}
|
||||
|
||||
render () {
|
||||
const { server, user } = this.props
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue