Remove useTheme util

pull/5701/head
Cagatay Civici 2024-05-03 10:40:40 +03:00
parent 8dc4eecb5d
commit 040ea8b9fd
2 changed files with 0 additions and 33 deletions

View File

@ -1,27 +0,0 @@
<template>
<DocSectionText v-bind="$attrs">
<p>Replaces the theme including the base and the preset such as from PrimeOne to Material. Note that the built-in Material theme is under development.</p>
</DocSectionText>
<DocSectionCode :code="code" hideToggleCode importCode hideStackBlitz />
</template>
<script>
export default {
data() {
return {
code: {
basic: `
import { useTheme } from 'primevue/themes';
const changeTheme() {
useTheme({
base: MaterialDesign,
preset: M3
});
}
`
}
};
}
};
</script>

View File

@ -47,7 +47,6 @@ import UpdatePresetDoc from '@/doc/theming/styled/utils/UpdatePresetDoc.vue';
import UpdatePrimaryPaletteDoc from '@/doc/theming/styled/utils/UpdatePrimaryPaletteDoc.vue';
import UpdateSurfacePaletteDoc from '@/doc/theming/styled/utils/UpdateSurfacePaletteDoc.vue';
import UsePresetDoc from '@/doc/theming/styled/utils/UsePresetDoc.vue';
import UseThemeDoc from '@/doc/theming/styled/utils/UseThemeDoc.vue';
export default {
data() {
@ -164,11 +163,6 @@ export default {
label: 'updateSurfacePalette',
component: UpdateSurfacePaletteDoc
},
{
id: 'usetheme',
label: 'useTheme',
component: UseThemeDoc
},
{
id: 'dt',
label: '$dt',