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:
parent
978757c757
commit
12277dae67
2 changed files with 4 additions and 0 deletions
|
|
@ -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>
|
||||
|
||||
|
|
|
|||
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue