mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 22:03:49 -07:00
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:
parent
150c5fbbea
commit
72688673fa
3 changed files with 1 additions and 8 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
'use client';
|
|
||||||
|
|
||||||
import {
|
import {
|
||||||
ColumnDef,
|
ColumnDef,
|
||||||
ColumnFiltersState,
|
ColumnFiltersState,
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue