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';
|
import { useEffect, useRef } from 'react';
|
||||||
|
|
||||||
export const CircleLayout = ({ items,radius, fontSize } : {items: any, radius: number, fontSize: any}) => {
|
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;
|
return percent * LUNAR_MONTH;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const getNextNewMoon = (date: Date = new Date()): Date => {
|
export const getNextNewMoon = (): Date => {
|
||||||
const lunarAge: number = getLunarAge(date);
|
|
||||||
return new Date(getLastNewMoon().getTime() + LUNAR_MONTH * 86400000);
|
return new Date(getLastNewMoon().getTime() + LUNAR_MONTH * 86400000);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
"lib": ["es6", "dom","es2015", "es2016", "es2017", "es2020"],
|
"lib": ["es6", "dom","es2015", "es2016", "es2017", "es2020"],
|
||||||
"sourceMap": true,
|
"sourceMap": true,
|
||||||
"allowJs": false,
|
"allowJs": false,
|
||||||
"jsx": "react",
|
"jsx": "react-jsx",
|
||||||
"declaration": true,
|
"declaration": true,
|
||||||
"declarationDir": "./types",
|
"declarationDir": "./types",
|
||||||
"moduleResolution": "node",
|
"moduleResolution": "node",
|
||||||
@ -15,7 +15,7 @@
|
|||||||
"noImplicitThis": true,
|
"noImplicitThis": true,
|
||||||
"strictNullChecks": true,
|
"strictNullChecks": true,
|
||||||
"noUnusedLocals": false,
|
"noUnusedLocals": false,
|
||||||
"noUnusedParameters": true
|
"noUnusedParameters": true ,
|
||||||
},
|
},
|
||||||
"include": ["src"],
|
"include": ["src"],
|
||||||
"exclude": ["node_modules", "dist", "example", "rollup.config.mjss"],
|
"exclude": ["node_modules", "dist", "example", "rollup.config.mjss"],
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user