Theming API: Update actions
parent
e83919d431
commit
36cd4c4692
|
@ -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';
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
import Theme from 'primevue/themes';
|
||||||
|
|
||||||
|
export default (preset) => {
|
||||||
|
Theme.setPreset(preset);
|
||||||
|
|
||||||
|
return preset;
|
||||||
|
};
|
Loading…
Reference in New Issue