Skip to content

Commit

Permalink
Removed css modules
Browse files Browse the repository at this point in the history
  • Loading branch information
theLAZYmd authored and theLAZYmd committed Apr 1, 2021
1 parent b85a954 commit d51675c
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 16 deletions.
2 changes: 1 addition & 1 deletion lib/Frame.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions lib/Frame.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/Frame.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/Key.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions lib/Key.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/Key.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Empty file removed lib/css/frame.module.css
Empty file.
Empty file removed lib/css/key.module.css
Empty file.
5 changes: 2 additions & 3 deletions src/Frame.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ 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 defaultDayLabels = ['MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT', 'SUN'];
const defaultWeeks = 4;
Expand Down Expand Up @@ -38,9 +37,9 @@ export function CalendarFrame(props: CalendarFrameProps) {
props.startIndex || 0;

const styles = useMemo(() => {
let s = Object.assign({}, defaultStyles);
let s = {} as {[key: string]: string};
for (let [k, v] of Object.entries(props.classNames || {})) {
s[k] += ' ' + v;
s[k] += k + ' ' + v;
}
return s;
}, []);
Expand Down
5 changes: 2 additions & 3 deletions src/Key.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React from 'react';
import { useMemo } from 'react';
const defaultStyles = require('./css/key.module.css');

export interface CalendarKeyProps {
classNames?: {
Expand All @@ -18,9 +17,9 @@ export interface CalendarKeyProps {
export function CalendarKey(props: CalendarKeyProps) {

const styles = useMemo(() => {
let s = Object.assign({}, defaultStyles);
let s = {} as {[key: string]: string};
for (let [k, v] of Object.entries(props.classNames || {})) {
s[k] += ' ' + v;
s[k] += k + ' ' + v;
}
return s;
}, []);
Expand Down
Empty file removed src/css/frame.module.css
Empty file.
Empty file removed src/css/key.module.css
Empty file.

0 comments on commit d51675c

Please sign in to comment.