This commit is contained in:
sewmina7@gmail.com 2024-07-15 19:35:46 +05:30
parent 4209695865
commit 95f2ff86a5

View File

@ -268,7 +268,7 @@ function UserPage({ params }: { params: { id: string } }) {
</section> </section>
<div className={`${activeSelected ? "" : "hidden"} flex flex-col justify-center items-center`}> <div className={`${activeSelected ? "" : "hidden"} flex flex-col justify-center items-center`}>
{callouts.map((callout) => ( {callouts ? callouts.map((callout) => (
<CalloutCard <CalloutCard
key={callout.ca} key={callout.ca}
iconUrl={callout.icon_url} iconUrl={callout.icon_url}
@ -279,7 +279,7 @@ function UserPage({ params }: { params: { id: string } }) {
gains={parseFloat(callout.gains)} gains={parseFloat(callout.gains)}
dexUrl={dexUrls[callout.ca]} // Pass the Dexscreener URL to the CalloutCard dexUrl={dexUrls[callout.ca]} // Pass the Dexscreener URL to the CalloutCard
/> />
))} )) : "Empty"}
</div> </div>
<section className={`flex w-full ${!activeSelected ? "" : "hidden"}`}> <section className={`flex w-full ${!activeSelected ? "" : "hidden"}`}>
@ -297,8 +297,8 @@ function UserPage({ params }: { params: { id: string } }) {
</section> </section>
</section> </section>
<div className={`${!activeSelected ? "" : "hidden"} flex flex-col justify-center items-center`}> <div className={`${!activeSelected ? "" : "hidden"} flex flex-col justify-center items-center`}>
{history.map((entry) => ( {history ? history.map((entry) => (
<CalloutCard <CalloutCard
key={entry.ca} key={entry.ca}
iconUrl={entry.icon_url} iconUrl={entry.icon_url}
@ -309,7 +309,7 @@ function UserPage({ params }: { params: { id: string } }) {
gains={parseFloat(entry.gains)} gains={parseFloat(entry.gains)}
dexUrl={dexUrls[entry.ca]} // Pass the Dexscreener URL to the CalloutCard dexUrl={dexUrls[entry.ca]} // Pass the Dexscreener URL to the CalloutCard
/> />
))} )) : "Empty"}
</div> </div>
</section> </section>
</section> </section>