From dd3f1017162f7426d0615205ddf9db0572b9d2a5 Mon Sep 17 00:00:00 2001 From: Christopher Pappas Date: Tue, 21 May 2019 23:23:16 -0700 Subject: [PATCH] Make `interactions` optional --- src/Media.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Media.tsx b/src/Media.tsx index 18d90e9..1d21457 100644 --- a/src/Media.tsx +++ b/src/Media.tsx @@ -212,7 +212,7 @@ export interface CreateMediaConfig { /** * The interaction definitions for your application. */ - interactions: { [key: string]: string } + interactions?: { [key: string]: string } } export interface CreateMediaResults { @@ -304,7 +304,7 @@ export function createMedia< >(config: C): CreateMediaResults { const mediaQueries = new MediaQueries( config.breakpoints, - config.interactions + config.interactions || {} ) const DynamicResponsive = createResponsiveComponents()