Theming API: Update actions

pull/5507/head
mertsincan 2024-03-30 09:30:59 +00:00
parent e83919d431
commit 36cd4c4692
4 changed files with 10 additions and 2 deletions

View File

@ -1,5 +1,6 @@
export { default as extendPreset } from './extendPreset'; export { default as definePreset } from './definePreset';
export { default as updatePreset } from './updatePreset'; export { default as updatePreset } from './updatePreset';
export { default as updatePrimary } from './updatePrimary'; export { default as updatePrimary } from './updatePrimary';
export { default as updateSurface } from './updateSurface'; export { default as updateSurface } from './updateSurface';
export { default as updateTheme } from './updateTheme'; export { default as usePreset } from './usePreset';
export { default as useTheme } from './useTheme';

View File

@ -0,0 +1,7 @@
import Theme from 'primevue/themes';
export default (preset) => {
Theme.setPreset(preset);
return preset;
};