mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2025-12-13 07:46:10 +00:00
compiler fix
This commit is contained in:
parent
a85036fbf1
commit
742ede8bc0
@ -1,4 +1,3 @@
|
||||
import * as React from 'react';
|
||||
import { useEffect, useRef } from 'react';
|
||||
|
||||
export const CircleLayout = ({ items,radius, fontSize } : {items: any, radius: number, fontSize: any}) => {
|
||||
|
||||
@ -21,8 +21,7 @@ export const getLunarAge = (date: Date = new Date()): number => {
|
||||
return percent * LUNAR_MONTH;
|
||||
};
|
||||
|
||||
export const getNextNewMoon = (date: Date = new Date()): Date => {
|
||||
const lunarAge: number = getLunarAge(date);
|
||||
export const getNextNewMoon = (): Date => {
|
||||
return new Date(getLastNewMoon().getTime() + LUNAR_MONTH * 86400000);
|
||||
}
|
||||
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
"lib": ["es6", "dom","es2015", "es2016", "es2017", "es2020"],
|
||||
"sourceMap": true,
|
||||
"allowJs": false,
|
||||
"jsx": "react",
|
||||
"jsx": "react-jsx",
|
||||
"declaration": true,
|
||||
"declarationDir": "./types",
|
||||
"moduleResolution": "node",
|
||||
@ -15,7 +15,7 @@
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"noUnusedLocals": false,
|
||||
"noUnusedParameters": true
|
||||
"noUnusedParameters": true ,
|
||||
},
|
||||
"include": ["src"],
|
||||
"exclude": ["node_modules", "dist", "example", "rollup.config.mjss"],
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user