breakout demo data

This commit is contained in:
41666 2019-03-20 00:24:19 -05:00
parent 29ea3279c9
commit 11a6e2d85c
3 changed files with 15 additions and 17 deletions

View file

@ -2,15 +2,12 @@
import * as React from 'react'
import styled from 'styled-components'
import Role from '../role/demo'
const roles = [
'cute', 'vanity', 'brave', 'proud', 'wonderful', '日本語'
]
import demoRoles from '../../config/demo'
const DemoWrapper = styled.div`
text-align: center;
`
export default () => <DemoWrapper>
{ roles.map((v, i) => <Role key={i} role={{ name: `a ${v} role ♡`, color: `hsl(${(360 / roles.length) * i},40%,70%)` }} />) }
{ demoRoles.map((v, i) => <Role key={i} role={v} />) }
</DemoWrapper>