sakai-vue icon indicating copy to clipboard operation
sakai-vue copied to clipboard

Invalid Prop in FloatingConfigurator.vue

Open HenriqueMoroziniHupp opened this issue 6 months ago • 1 comments

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: Captura de tela de 2024-08-03 02-04-27


Currently:

<Button :icon="{ 'pi pi-moon': isDarkTheme, 'pi pi-sun': !isDarkTheme }"  />

My sugestion:

<Button :icon="isDarkTheme ? 'pi pi-moon' : 'pi pi-sun'"  />

HenriqueMoroziniHupp avatar Aug 03 '24 05:08 HenriqueMoroziniHupp