Creating isEmpty function to check if dict/array have some contents.

This commit is contained in:
Roland 2022-11-04 09:58:38 -06:00
parent 92bd1de8a0
commit dad276d6ec
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93
10 changed files with 189 additions and 159 deletions

View file

@ -22,6 +22,7 @@ import {
TabPane as TAB_PANE,
TextArea as TEXTAREA
} from "semantic-ui-react";
import {isEmpty} from "./Common";
export const darkTheme = 'dark';
export const lightTheme = 'light';
@ -30,7 +31,7 @@ export const systemTheme = 'system';
export const themeSessionKey = 'color-scheme';
export function ThemeWrapper({children, ...props}) {
if (Object.keys(props).length > 0) {
if (!isEmpty(props)) {
console.log(props);
console.error('ThemeWrapper does not support props!');
}