From d78b056b3a1ba54764dd89ae4f5f95c54478b424 Mon Sep 17 00:00:00 2001 From: Juan Miguel Sanchez Mola Date: Fri, 6 Sep 2024 13:10:00 -0400 Subject: [PATCH] Fix infinite loop --- .../NftList/NftData/NftCollectionPage.tsx | 22 ++++++++----------- .../ClearMetadataBox/ClearMetadataItem.tsx | 8 ++----- .../MetadataAttributesPropertyItem.tsx | 4 ++-- 3 files changed, 13 insertions(+), 21 deletions(-) diff --git a/rair-front/src/components/MockUpPage/NftList/NftData/NftCollectionPage.tsx b/rair-front/src/components/MockUpPage/NftList/NftData/NftCollectionPage.tsx index a67423fca..975717d56 100644 --- a/rair-front/src/components/MockUpPage/NftList/NftData/NftCollectionPage.tsx +++ b/rair-front/src/components/MockUpPage/NftList/NftData/NftCollectionPage.tsx @@ -680,21 +680,17 @@ const NftCollectionPageComponent: FC = ({
- setTitleSearchAttributes(e.target.value)} - style={{ - border: '1px solid #666666', - width: '100%', - borderRadius: '12px', - padding: '5px 10px', - background: 'none', - outline: 'none', - color: 'white' +
{ +const ClearMetadataItem = ({ clickProperty, meta, val }) => { const [, /*clearActive*/ setClearActive] = useState(false); const { primaryColor, textColor, primaryButtonColor } = useAppSelector( (store) => store.colors ); - useEffect(() => { - getResetTokens(); - }, [getResetTokens, val]); - return (