diff --git a/package.json b/package.json index 51f770a..9f230b3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "App-Aletheia-data", - "version": "1.2.6", + "version": "1.2.7", "homepage": "/", "repository": { "type": "git", diff --git a/src/_start/partials/components/Stats/index.tsx b/src/_start/partials/components/Stats/index.tsx index 10a091d..745486f 100644 --- a/src/_start/partials/components/Stats/index.tsx +++ b/src/_start/partials/components/Stats/index.tsx @@ -29,8 +29,6 @@ const Stats: React.FC = ({ id, title, className, innerPadding = "" }) => const [loading, setLoading] = useState(true); useEffect(() => { - console.log(items); - setTimeout(() => { setTab(items, 1); }, 0); diff --git a/src/_start/partials/layout/SearchModal.tsx b/src/_start/partials/layout/SearchModal.tsx index be58954..bfc36cb 100644 --- a/src/_start/partials/layout/SearchModal.tsx +++ b/src/_start/partials/layout/SearchModal.tsx @@ -73,8 +73,7 @@ const SearchModal: React.FC = ({ show, handleClose }) => { useEffect(() => { async function getUserLastUploads() { const walletAddress = user?.account.toLowerCase(); - - const url = `/v2/open-data/alexandrias/getAll?limit=5&wallet_address=${walletAddress}`; + const url = `/v2/open-data/alexandrias/getAll?limit=5&wallet_address=${walletAddress}&sort=createdAt:-1`; try { const response = await rapidFetcher().url(url).get().json(); if (response?.body) { @@ -125,8 +124,8 @@ const SearchModal: React.FC = ({ show, handleClose }) => { }; // handlers - const goToAsset = (cid: string) => { - history.push(`/single/src/${cid}`); + const goToAsset = (cid: string, id: string) => { + history.push(`/single/src/${cid}?assetId=${id}`); handleClose(); setTimeout(() => { clearSearch(); @@ -215,7 +214,7 @@ const SearchModal: React.FC = ({ show, handleClose }) => { {/* begin::Content */}
goToAsset(item.cid)} + onClick={() => goToAsset(item.cid, item['_id'])} className="fs-6 fw-bolder text-hover-primary text-gray-800 mb-2" > {item.title} @@ -245,7 +244,6 @@ const SearchModal: React.FC = ({ show, handleClose }) => { {catData && catData.categories.map((cat: any, i: number) => { if (i > 1) return; - console.log(cat); return (