Revert ListHeader component to fix webpack error
- Removed ListHeader component causing module loading issues - Restored original header structure in list page - Moved permission badge and share button back to ListDetailView - Kept them on one line for compact layout
This commit is contained in:
@@ -156,6 +156,22 @@ export default function ListDetailView({
|
||||
|
||||
return (
|
||||
<div className="space-y-6">
|
||||
{/* Permission Badge and Share Button */}
|
||||
{(permission || canShare) && (
|
||||
<div className="flex items-center gap-2">
|
||||
{permission && <PermissionBadge permission={permission} />}
|
||||
{canShare && (
|
||||
<button
|
||||
onClick={() => setIsShareModalOpen(true)}
|
||||
className="flex items-center gap-2 px-3 py-1.5 bg-blue-500 hover:bg-blue-600 active:bg-blue-700 text-white rounded-lg transition-colors text-sm font-medium"
|
||||
>
|
||||
<Share2 size={16} />
|
||||
<span className="hidden sm:inline">Share</span>
|
||||
</button>
|
||||
)}
|
||||
</div>
|
||||
)}
|
||||
|
||||
{/* Search Bar */}
|
||||
<SearchBar
|
||||
onSearch={handleSearchCallback}
|
||||
|
||||
Reference in New Issue
Block a user