mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-29 11:26:25 -05:00
Creating isEmpty function to check if dict/array have some contents.
This commit is contained in:
parent
92bd1de8a0
commit
dad276d6ec
10 changed files with 189 additions and 159 deletions
|
|
@ -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!');
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue