From 931cb449d0a4917a6a930a3866b3f6f20407c305 Mon Sep 17 00:00:00 2001 From: Chris Zuber Date: Fri, 27 Sep 2024 21:22:47 -0700 Subject: [PATCH] Fix linting error --- test/index.js | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/test/index.js b/test/index.js index 2c70345..709e94b 100644 --- a/test/index.js +++ b/test/index.js @@ -1,17 +1,10 @@ import { addStyles, css } from '@aegisjsproject/core'; import { btn, btnPrimary, btnSuccess, btnDanger, btnWarning, reset, baseTheme, darkTheme, - lightTheme, componentBase, componentBorder, registerProperties, customProperties, - componentDarkTheme, componentLightTheme, properties, + lightTheme, componentBase, componentBorder, componentDarkTheme, componentLightTheme, properties, } from '@aegisjsproject/styles'; -const result = registerProperties(customProperties); - -if (result instanceof Error) { - console.error(result); -} - -addStyles(document, btn, btnPrimary, btnSuccess, btnDanger, btnWarning, reset, baseTheme, darkTheme, lightTheme); +addStyles(document, properties, btn, btnPrimary, btnSuccess, btnDanger, btnWarning, reset, baseTheme, darkTheme, lightTheme); document.getElementById('toggle').addEventListener('click', async () => { switch(document.documentElement.dataset.theme) {