Skip to content

Commit

Permalink
refactor(keys): remove keys
Browse files Browse the repository at this point in the history
  • Loading branch information
BryanGmG authored Jul 5, 2024
1 parent 3671715 commit 3dfcda5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pages/Home.page.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ import {changeLanguage, languageName} from '@/scripts/i18n.js';
<div>
<div class = "flex justify-between">
<h1 class = "text-4xl">{{$t('home.title')}}</h1>
<div :key="darkMode" class = " computer:text-2xl mobile:text-xl flex gap-2.5">
<div class = " computer:text-2xl mobile:text-xl flex gap-2.5">
<rounded-button @click="toggleColorTheme(!darkMode)">
<i v-if="darkMode" class = "pi pi-moon"/>
<i v-else class = "pi pi-sun"/>
</rounded-button>

<rounded-button @click="changeLanguage" :key="darkMode">
<rounded-button @click="changeLanguage">
<p>{{languageName}}</p>
</rounded-button>

Expand Down Expand Up @@ -51,4 +51,4 @@ import {changeLanguage, languageName} from '@/scripts/i18n.js';

<style scoped>
</style>
</style>

0 comments on commit 3dfcda5

Please sign in to comment.