implementing translation on sidebar menu

This commit is contained in:
Geriano
2022-08-14 20:07:22 +07:00
parent 3a11590900
commit 1d141a8b60
2 changed files with 12 additions and 4 deletions

View File

@@ -27,10 +27,14 @@ const open = ref(active ? true : false)
<template>
<div class="w-full flex flex-col">
<button @click.prevent="open = ! open" class="w-full p-4" :class="`${themes().get('sidebar', 'bg-slate-700 text-gray-200')} ${open && 'dark:bg-gray-800'} pl-${padding !== 0 && padding}`">
<button
@click.prevent="open = ! open"
:class="`${themes().get('sidebar', 'bg-slate-700 text-gray-200')} ${open && 'dark:bg-gray-800'} pl-${padding !== 0 && padding}`"
class="w-full p-4"
>
<div class="flex items-center space-x-2">
<Icon :name="menu.icon" />
<p class="uppercase font-semibold w-full text-left">{{ menu.name }}</p>
<p class="uppercase font-semibold w-full text-left">{{ __(menu.name) }}</p>
<Icon name="caret-left" class="transition-all ease-in-out duration-150" :class="open && '-rotate-90'" />
</div>
</button>