sakai-vue
sakai-vue copied to clipboard
Invalid Prop in FloatingConfigurator.vue
Every time I access the Login page, "[Vue warn]: Invalid prop" appears in the console, the warning occurs on the toggle button dark mode within the FloatingConfigurator.vue
component.
Expects a string with the icon value, but is receiving an object
Error:
Currently:
<Button :icon="{ 'pi pi-moon': isDarkTheme, 'pi pi-sun': !isDarkTheme }" />
My sugestion:
<Button :icon="isDarkTheme ? 'pi pi-moon' : 'pi pi-sun'" />