Skip to content

Commit

Permalink
Merge pull request #82 from artsy/make-interactions-optional
Browse files Browse the repository at this point in the history
Make `interactions` optional
  • Loading branch information
alloy authored May 22, 2019
2 parents a814697 + dd3f101 commit ddaef00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Media.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ export interface CreateMediaConfig {
/**
* The interaction definitions for your application.
*/
interactions: { [key: string]: string }
interactions?: { [key: string]: string }
}

export interface CreateMediaResults<B, I> {
Expand Down Expand Up @@ -304,7 +304,7 @@ export function createMedia<
>(config: C): CreateMediaResults<B, I> {
const mediaQueries = new MediaQueries<B>(
config.breakpoints,
config.interactions
config.interactions || {}
)

const DynamicResponsive = createResponsiveComponents()
Expand Down

0 comments on commit ddaef00

Please sign in to comment.