Skip to content

Commit

Permalink
Merge pull request #989 from primer/cb/ts-grid
Browse files Browse the repository at this point in the history
Migrate Grid to TypeScript
  • Loading branch information
colebemis committed Jan 27, 2021
2 parents 6857161 + 34ff488 commit 3f464ed
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/tricky-gifts-bake.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/components": patch
---

Migrate `Grid` to TypeScript
8 changes: 5 additions & 3 deletions src/Grid.js → src/Grid.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import styled from 'styled-components'
import {GRID} from './constants'
import theme from './theme'
import Box from './Box'
import {GRID, SystemGridProps} from './constants'
import theme from './theme'
import {ComponentProps} from './utils/types'

const Grid = styled(Box)`
const Grid = styled(Box)<SystemGridProps>`
${GRID};
`

Expand All @@ -17,4 +18,5 @@ Grid.propTypes = {
...GRID.propTypes
}

export type GridProps = ComponentProps<typeof Grid>
export default Grid
File renamed without changes.
File renamed without changes.

1 comment on commit 3f464ed

@vercel
Copy link

@vercel vercel bot commented on 3f464ed Jan 27, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.