From 1bf11a66a6b2c7e0aeea3a3836a53664a3c23179 Mon Sep 17 00:00:00 2001 From: theLAZYmd Date: Thu, 1 Apr 2021 16:59:53 +0100 Subject: [PATCH] Try two module.css files --- {css => lib/css}/frame.module.css | 0 {css => lib/css}/key.module.css | 0 src/Frame.tsx | 2 +- src/Key.tsx | 2 +- src/css/frame.module.css | 0 src/css/key.module.css | 0 6 files changed, 2 insertions(+), 2 deletions(-) rename {css => lib/css}/frame.module.css (100%) rename {css => lib/css}/key.module.css (100%) create mode 100644 src/css/frame.module.css create mode 100644 src/css/key.module.css diff --git a/css/frame.module.css b/lib/css/frame.module.css similarity index 100% rename from css/frame.module.css rename to lib/css/frame.module.css diff --git a/css/key.module.css b/lib/css/key.module.css similarity index 100% rename from css/key.module.css rename to lib/css/key.module.css diff --git a/src/Frame.tsx b/src/Frame.tsx index da25aa1..45724e9 100644 --- a/src/Frame.tsx +++ b/src/Frame.tsx @@ -4,7 +4,7 @@ import cx from 'classnames'; import { CalendarEvent } from './Event'; import { getDisplayTime, getEventDate } from './utils'; import { useMemo } from 'react'; -const defaultStyles = require('../css/frame.module.css'); +const defaultStyles = require('./css/frame.module.css'); const defaultDayLabels = ['MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT', 'SUN']; const defaultWeeks = 4; diff --git a/src/Key.tsx b/src/Key.tsx index e0f0266..e8f07c4 100644 --- a/src/Key.tsx +++ b/src/Key.tsx @@ -1,6 +1,6 @@ import React from 'react'; import { useMemo } from 'react'; -const defaultStyles = require('../css/key.module.css'); +const defaultStyles = require('./css/key.module.css'); export interface CalendarKeyProps { classNames?: { diff --git a/src/css/frame.module.css b/src/css/frame.module.css new file mode 100644 index 0000000..e69de29 diff --git a/src/css/key.module.css b/src/css/key.module.css new file mode 100644 index 0000000..e69de29