primevue-mirror/components/lib/themes/actions/updatePreset.js

10 lines
222 B
JavaScript
Raw Normal View History

import Theme, { SharedUtils } from 'primevue/themes';
export default (preset) => {
const newPreset = SharedUtils.object.mergeKeys(Theme.getPreset(), preset);
Theme.setPreset(newPreset);
return newPreset;
};