From 21255dabf3bed21525d4e4162bd7f11bb2179d5a Mon Sep 17 00:00:00 2001 From: Matt Date: Fri, 16 Oct 2020 11:59:31 +0100 Subject: [PATCH] update apply theme to make more generic --- src/Theme/index.tsx | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/Theme/index.tsx b/src/Theme/index.tsx index 31b151f..7218d42 100644 --- a/src/Theme/index.tsx +++ b/src/Theme/index.tsx @@ -1,15 +1,18 @@ import React, { HTMLAttributes } from "react"; import cx from "classnames"; -interface Options extends HTMLAttributes { - className?: string; -} +interface Options extends HTMLAttributes {} export const applyTheme = ( Component: React.FC, - { className }: Options + options: T ) => (props: T) => { - return ; + return ( + + ); }; export default applyTheme;