Skip to content

Commit

Permalink
use FlexProps type for Flex component
Browse files Browse the repository at this point in the history
  • Loading branch information
VanAnderson committed Feb 10, 2021
1 parent d1785f4 commit e80a720
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SubNav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
} from './constants'
import {ComponentProps} from './utils/types'
import theme from './theme'
import Flex from './Flex'
import Flex, {FlexProps} from './Flex'
import sx, {SxProp} from './sx'
import * as History from 'history'

Expand Down Expand Up @@ -63,7 +63,7 @@ function SubNav({actions, className, children, label, theme, ...rest}: StyledSub
)
}

const SubNavLinks = (props: SystemFlexProps & SystemCommonProps & SxProp) => <Flex {...props} />
const SubNavLinks = (props: FlexProps) => <Flex {...props} />

type StyledSubNavLinkProps = {
to?: History.LocationDescriptor
Expand Down

0 comments on commit e80a720

Please sign in to comment.