absolutely massive typescript porting time

This commit is contained in:
41666 2019-06-02 18:58:15 -05:00
parent 01f238f515
commit 30d08a630f
No known key found for this signature in database
GPG key ID: BC51D07640DC10AF
159 changed files with 2563 additions and 3861 deletions

View file

@ -3,8 +3,13 @@ import styled from 'styled-components'
import demoRoles from '../../config/demo'
import MediaQuery from '../../kit/media'
const admin = { name: 'admin', color: '#db2828' }
const bot = { name: 'roleypoly', color: 'var(--c-5)' }
type Role = {
name: string
color: string
}
const admin: Role = { name: 'admin', color: '#db2828' }
const bot: Role = { name: 'roleypoly', color: 'var(--c-5)' }
const exampleGood = [
admin,
@ -39,7 +44,7 @@ const Collapser = styled.div`
})}
`
const DiscordRole = styled.div`
const DiscordRole = styled.div<{role: Role}>`
color: ${({ role: { color } }) => color};
position: relative;
padding: 0.3em 0.6em;