Cosmetics
parent
5c56d32671
commit
1fcff2c769
|
@ -1,6 +1,7 @@
|
||||||
import Theme from 'primevue/themes';
|
import Theme from 'primevue/themes';
|
||||||
|
|
||||||
export default (theme) => {
|
export default (theme) => {
|
||||||
|
// @todo
|
||||||
const [{ options: o1 }, { options: o2 }] = [Theme.getTheme(), theme];
|
const [{ options: o1 }, { options: o2 }] = [Theme.getTheme(), theme];
|
||||||
const newTheme = {
|
const newTheme = {
|
||||||
...theme,
|
...theme,
|
||||||
|
|
|
@ -28,7 +28,7 @@ export default {
|
||||||
...theme.options
|
...theme.options
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
this._tokens = ThemeUtils.createTokens(theme?.preset, this.defaults);
|
this._tokens = ThemeUtils.createTokens(this.preset, this.defaults);
|
||||||
this.clearLoadedStyleNames();
|
this.clearLoadedStyleNames();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue