Refactor emoji-related components and clean up code

- Updated the EmojiAliasController to clarify that the show method is not needed for Inertia, as it is handled in the frontend.
- Removed unused 'use client' directive from the emoji data table component.
- Deleted the 'Emojis' entry from the sidebar navigation in the settings layout, streamlining the UI.

These changes improve code clarity and maintainability by removing unnecessary elements and comments.
This commit is contained in:
Yury Pikhtarev 2025-07-16 21:51:14 +04:00
commit 72688673fa
No known key found for this signature in database
3 changed files with 1 additions and 8 deletions

View file

@ -41,7 +41,7 @@ class EmojiAliasController extends Controller
*/ */
public function show(EmojiAlias $alias) public function show(EmojiAlias $alias)
{ {
// Not needed // Not needed for Inertia - handled in frontend
} }
/** /**

View file

@ -1,5 +1,3 @@
'use client';
import { import {
ColumnDef, ColumnDef,
ColumnFiltersState, ColumnFiltersState,

View file

@ -22,11 +22,6 @@ const sidebarNavItems: NavItem[] = [
href: '/settings/appearance', href: '/settings/appearance',
icon: null, icon: null,
}, },
{
title: 'Emojis',
href: '/settings/emojis',
icon: null,
},
]; ];
export default function SettingsLayout({ children }: PropsWithChildren) { export default function SettingsLayout({ children }: PropsWithChildren) {