Switching to @Radium decorator
This commit is contained in:
@@ -4,7 +4,8 @@ import React, { Component } from 'react'
|
||||
import { Box, Icon } from '.'
|
||||
import { sizeInfo, colorInfo, fontInfo } from './style'
|
||||
|
||||
class List extends Component {
|
||||
@Radium
|
||||
export class List extends Component {
|
||||
static propTypes = {
|
||||
data: PropTypes.array,
|
||||
render: PropTypes.func.isRequired,
|
||||
@@ -91,5 +92,3 @@ List.Text = Radium(class ListText extends Component {
|
||||
)
|
||||
}
|
||||
})
|
||||
|
||||
export default Radium(List)
|
||||
|
||||
Reference in New Issue
Block a user