feat(market-card.tsx): add display of user who created the market card for better user experience and context

fix(index.ts): add user_created property to storeComponent type to match the API response structure
This commit is contained in:
cristhianzl 2023-11-16 10:27:14 -03:00
commit 12277dae67
2 changed files with 4 additions and 0 deletions

View file

@ -174,6 +174,9 @@ export const MarketCardComponent = ({
<CardDescription className="pb-2 pt-2">
<div className="truncate-doubleline">{data.description}</div>
</CardDescription>
<span className="flex items-center gap-1.5 text-xs text-foreground">
Created by: {data.user_created?.first_name}
</span>
</CardHeader>
</div>

View file

@ -8,6 +8,7 @@ export type storeComponent = {
description: string;
liked_by_count: number;
liked_by_user?: boolean;
user_created: { first_name: string };
};
export type StoreComponentResponse = {