Fixed syntax error

pull/6219/head
Cagatay Civici 2024-08-12 10:30:04 +03:00
parent d2e86b5b88
commit 0efac060bd
1 changed files with 2 additions and 2 deletions

View File

@ -39,12 +39,12 @@ app.use(PrimeVue, {
},
code2: {
basic: `
<Button label="Toggle Color Scheme" @click="toggleColorScheme()" />
<Button label="Toggle Dark Mode" @click="toggleDarkMode()" />
`
},
code3: {
basic: `
const toggleColorScheme() {
function toggleDarkMode() {
const element = document.querySelector('html');
element.classList.toggle('my-app-dark');
}