mirror of
https://github.com/roleypoly/roleypoly-v1.git
synced 2025-06-17 02:29:10 +00:00
absolutely massive typescript porting time
This commit is contained in:
parent
01f238f515
commit
30d08a630f
159 changed files with 2563 additions and 3861 deletions
|
@ -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;
|
Loading…
Add table
Add a link
Reference in a new issue