fix(27): lint fixes — unused param, import order, formatting
This commit is contained in:
@@ -10,18 +10,15 @@ interface TabItemProps {
|
||||
isActive: boolean;
|
||||
}
|
||||
|
||||
function TabItemWrapper({
|
||||
icon,
|
||||
label,
|
||||
isActive,
|
||||
children,
|
||||
}: TabItemProps & { children?: React.ReactNode }) {
|
||||
function TabItemWrapper({ icon, label, isActive }: TabItemProps) {
|
||||
const activeClass = "text-gray-900";
|
||||
const inactiveClass = "text-gray-400";
|
||||
const colorClass = isActive ? activeClass : inactiveClass;
|
||||
|
||||
return (
|
||||
<span className={`flex flex-col items-center gap-0.5 py-2 px-4 ${colorClass}`}>
|
||||
<span
|
||||
className={`flex flex-col items-center gap-0.5 py-2 px-4 ${colorClass}`}
|
||||
>
|
||||
<LucideIcon name={icon} size={20} />
|
||||
<span className="text-xs">{label}</span>
|
||||
</span>
|
||||
@@ -83,10 +80,7 @@ export function BottomTabBar() {
|
||||
)}
|
||||
|
||||
{/* Search tab — always a button, opens CatalogSearchOverlay */}
|
||||
<button
|
||||
type="button"
|
||||
onClick={() => openCatalogSearch("collection")}
|
||||
>
|
||||
<button type="button" onClick={() => openCatalogSearch("collection")}>
|
||||
<TabItemWrapper icon="search" label="Search" isActive={false} />
|
||||
</button>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user