Skip to content

Commit

Permalink
Merge pull request #986 from primer/cb/ts-flex
Browse files Browse the repository at this point in the history
Migrate Flex to TypeScript
  • Loading branch information
smockle authored Jan 27, 2021
2 parents 4b71d19 + e309753 commit 6857161
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/happy-taxis-compare.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/components": patch
---

Migrate `Flex` to TypeScript
4 changes: 3 additions & 1 deletion src/Flex.js → src/Flex.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import styled from 'styled-components'
import theme from './theme'
import Box from './Box'
import theme from './theme'
import {ComponentProps} from './utils/types'

const Flex = styled(Box)``

Expand All @@ -13,4 +14,5 @@ Flex.propTypes = {
...Box.propTypes
}

export type FlexProps = ComponentProps<typeof Flex>
export default Flex
File renamed without changes.
File renamed without changes.

1 comment on commit 6857161

@vercel
Copy link

@vercel vercel bot commented on 6857161 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.