Skip to content

Commit

Permalink
feat: fix typescript typing, and add in an import
Browse files Browse the repository at this point in the history
  • Loading branch information
riiniii committed Jan 15, 2021
1 parent 648566a commit 7515b90
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/Layout/Column.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ interface Props {
* HTML element to be used for the component
* @default <div>
*/
as?: React.ElementType
as?: keyof JSX.IntrinsicElements
/**
* The number of columns to span on extra large devices (≥ 1200px)
*/
Expand Down
2 changes: 1 addition & 1 deletion src/components/Layout/Container.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ interface Props {
* A custom element to be used for the component
* @default <div>
*/
as?: React.ElementType
as?: keyof JSX.IntrinsicElements // As extends React.ElementType // '"symbol" | undefined'
/**
* Allow the Container to fill all of its available horizontal space
* @default false
Expand Down
5 changes: 3 additions & 2 deletions src/components/Layout/Row.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import React, { CSSProperties } from 'react'
import { CSSProperties } from 'react'
import * as React from 'react'
import BootstrapRow from 'react-bootstrap/Row'

interface Props {
/**
* HTML element to be used for the component
* @default <div>
*/
as?: React.ElementType
as?: keyof JSX.IntrinsicElements // React.ElementType
/**
* Removes the gutter spacing between `Columns` as well as any added negative margins.
* @default false
Expand Down
1 change: 1 addition & 0 deletions stories/typography.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { storiesOf } from '@storybook/react'
import * as React from 'react'

import { Typography } from '../src'

Expand Down

0 comments on commit 7515b90

Please sign in to comment.