From 4831d485c584900bd4daee6e0e9ef586d575a643 Mon Sep 17 00:00:00 2001 From: Neokeld Date: Sun, 14 Mar 2021 12:48:27 +0100 Subject: [PATCH] Version 0.2.15 Support for React versions where import React is mandatory --- components/Card/Card.js | 1 + components/Divider/Divider.js | 1 + components/Modal/CustomButton.js | 1 + components/Modal/Modal.js | 2 +- package.json | 2 +- 5 files changed, 5 insertions(+), 2 deletions(-) diff --git a/components/Card/Card.js b/components/Card/Card.js index 363da38..081b900 100644 --- a/components/Card/Card.js +++ b/components/Card/Card.js @@ -1,3 +1,4 @@ +import React from 'react'; import styled from '@emotion/styled'; import { cardTheme, diff --git a/components/Divider/Divider.js b/components/Divider/Divider.js index 5f34240..56bb911 100644 --- a/components/Divider/Divider.js +++ b/components/Divider/Divider.js @@ -1,3 +1,4 @@ +import React from 'react'; import styled from '@emotion/styled'; const DividerRoot = styled.div` diff --git a/components/Modal/CustomButton.js b/components/Modal/CustomButton.js index b8fa4e2..41614a5 100644 --- a/components/Modal/CustomButton.js +++ b/components/Modal/CustomButton.js @@ -1,3 +1,4 @@ +import React from 'react'; import { Button } from '../Button'; export const CustomButton = ({onClick, children}) => ( diff --git a/components/Modal/Modal.js b/components/Modal/Modal.js index b9ab740..1927b50 100644 --- a/components/Modal/Modal.js +++ b/components/Modal/Modal.js @@ -1,4 +1,4 @@ -import { Component } from 'react'; +import React, { Component } from 'react'; import styled from "@emotion/styled"; import { Box } from '../Box'; diff --git a/package.json b/package.json index c00a0ff..9cf500a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "composion", - "version": "0.2.13", + "version": "0.2.15", "description": "Component Library", "main": "dist/composion.js", "module": "dist/composion.es.js",