Removed key as props from My Collection

This commit is contained in:
Lucas Oliveira 2024-06-07 08:12:14 -03:00
commit a747bdbc3c

View file

@ -2,16 +2,15 @@ import ComponentsComponent from "../componentsComponent";
import HeaderTabsSearchComponent from "./components/headerTabsSearchComponent"; import HeaderTabsSearchComponent from "./components/headerTabsSearchComponent";
type MyCollectionComponentProps = { type MyCollectionComponentProps = {
key: string;
type: string; type: string;
}; };
const MyCollectionComponent = ({ key, type }: MyCollectionComponentProps) => { const MyCollectionComponent = ({ type }: MyCollectionComponentProps) => {
return ( return (
<> <>
<HeaderTabsSearchComponent /> <HeaderTabsSearchComponent />
<div className="mt-5 flex h-full flex-col"> <div className="mt-5 flex h-full flex-col">
<ComponentsComponent key={key} type={type} /> <ComponentsComponent key={type} type={type} />
</div> </div>
</> </>
); );