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