Skip to content

Commit

Permalink
fix(css): re-added css imports in components
Browse files Browse the repository at this point in the history
  • Loading branch information
Se-Gl committed Aug 6, 2022
1 parent 686325e commit 5ad9486
Show file tree
Hide file tree
Showing 16 changed files with 19 additions and 11 deletions.
2 changes: 1 addition & 1 deletion dist/index.es.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/components/Accordion/Accordion.js
@@ -1,6 +1,6 @@
import React, { useState, useRef, useEffect } from 'react'
import { BoxPlusIcon, PlusIcon } from './Icons'
// import '../../style/green.css'
import '../../../dist/style/green.css'

export function Accordion({
expand = 'Your title',
Expand Down
2 changes: 1 addition & 1 deletion src/components/Accordion/Icons.js
@@ -1,5 +1,5 @@
import React from 'react'
// import '../../style/green.css'
import '../../../dist/style/green.css'

export function BoxPlusIcon({
width = '11',
Expand Down
1 change: 1 addition & 0 deletions src/components/CookieBanner/CookieBanner.js
@@ -1,4 +1,5 @@
import React, { useEffect, useState } from 'react'
import '../../../dist/style/green.css'

export function CookieBanner({
header = '🍪 Our website uses cookies',
Expand Down
5 changes: 2 additions & 3 deletions src/components/Input/Input.js
@@ -1,7 +1,6 @@
import React from 'react'

// import '../../style/input.css'
// import '../../style/green.css'
import '../../../dist/style/input.css'
import '../../../dist/style/green.css'

export function Input({
required,
Expand Down
3 changes: 3 additions & 0 deletions src/components/Input/TextArea.js
@@ -1,5 +1,8 @@
import React, { useEffect } from 'react'

import '../../../dist/style/input.css'
import '../../../dist/style/green.css'

export function TextArea({
required,
id,
Expand Down
2 changes: 1 addition & 1 deletion src/components/Modal/CloseIcon.js
@@ -1,5 +1,5 @@
import React from 'react'
// import '../../style/green.css'
import '../../../dist/style/green.css'

function CloseIcon({ width = '20', height = '20' }) {
return (
Expand Down
2 changes: 1 addition & 1 deletion src/components/Modal/Modal.js
@@ -1,7 +1,7 @@
import { createPortal } from 'react-dom'
import React, { useEffect, useRef } from 'react'
import CloseIcon from './CloseIcon'
// import '../../style/green.css'
import '../../../dist/style/green.css'

export const Modal = ({
children,
Expand Down
1 change: 1 addition & 0 deletions src/components/Toast/Toast.js
@@ -1,5 +1,6 @@
import React, { useCallback } from 'react'
import ToastItem from './ToastItem'
import '../../../dist/style/green.css'

export const Toast = ({
toastList,
Expand Down
3 changes: 1 addition & 2 deletions src/components/Toast/ToastItem.js
Expand Up @@ -3,9 +3,8 @@ import CloseIcon from './icon/Close'
import InfoIcon from './icon/Info'
import ErrorIcon from './icon/Error'
import SuccessIcon from './icon/Success'

import './Toast.module.css'
import WarningIcon from './icon/Warning'
import './Toast.module.css'

const ToastIcon = ({ type }) => {
switch (type) {
Expand Down
1 change: 1 addition & 0 deletions src/components/Toast/icon/Close.js
@@ -1,4 +1,5 @@
import React from 'react'
import '../../../../dist/style/green.css'

function CloseIcon({ width = '50', height = '50', className = 'fill-black' }) {
return (
Expand Down
1 change: 1 addition & 0 deletions src/components/Toast/icon/Error.js
@@ -1,4 +1,5 @@
import React from 'react'
import '../../../../dist/style/green.css'

function ErrorIcon({ width = '28', height = '28' }) {
return (
Expand Down
1 change: 1 addition & 0 deletions src/components/Toast/icon/Info.js
@@ -1,4 +1,5 @@
import React from 'react'
import '../../../../dist/style/green.css'

function InfoIcon({ width = '50', height = '50' }) {
return (
Expand Down
1 change: 1 addition & 0 deletions src/components/Toast/icon/Success.js
@@ -1,4 +1,5 @@
import React from 'react'
import '../../../../dist/style/green.css'

function SuccessIcon({ width = '50', height = '50' }) {
return (
Expand Down
1 change: 1 addition & 0 deletions src/components/Toast/icon/Warning.js
@@ -1,4 +1,5 @@
import React from 'react'
import '../../../../dist/style/green.css'

function WarningIcon({ width = '50', height = '50' }) {
return (
Expand Down

0 comments on commit 5ad9486

Please sign in to comment.