create-nextjs-cms 0.8.1 → 0.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -11,6 +11,7 @@ import ProtectedImage from '@/components/ProtectedImage'
|
|
|
11
11
|
import { trpc } from '@/app/_trpc/client'
|
|
12
12
|
import { useToast } from '@/components/ui/use-toast'
|
|
13
13
|
import { logout, useSession } from 'nextjs-cms/auth/react'
|
|
14
|
+
import { LogOut } from 'lucide-react'
|
|
14
15
|
|
|
15
16
|
const Sidebar = (props: SidebarProps & { logoUrlPath: string; logoText: string; isRTL: boolean }) => {
|
|
16
17
|
const t = useI18n()
|
|
@@ -141,17 +142,19 @@ const Sidebar = (props: SidebarProps & { logoUrlPath: string; logoText: string;
|
|
|
141
142
|
item={{
|
|
142
143
|
path: '/settings',
|
|
143
144
|
title: t('accountSettings'),
|
|
145
|
+
icon: 'cog'
|
|
144
146
|
}}
|
|
145
147
|
/>
|
|
146
148
|
<Link
|
|
147
149
|
href='#'
|
|
148
150
|
onClick={handleLogout}
|
|
149
151
|
className={classNames({
|
|
150
|
-
'rounded-lg text-white hover:bg-indigo-900 dark:hover:bg-emerald-600': true, //colors
|
|
152
|
+
'flex flex-row gap-1 items-center rounded-lg hover:text-white hover:bg-indigo-900 dark:hover:bg-emerald-600': true, //colors
|
|
151
153
|
'transition-colors duration-100': false, //animation
|
|
152
154
|
'gap-4 p-2 text-start': true,
|
|
153
155
|
})}
|
|
154
156
|
>
|
|
157
|
+
<LogOut className='size-4' />
|
|
155
158
|
<span>{t('logout')}</span>
|
|
156
159
|
</Link>
|
|
157
160
|
</div>
|