|
|
@ -34,12 +34,12 @@ const CouponList: React.FC<CouponListProps> = ({ |
|
|
|
return ( |
|
|
|
<View className="p-4"> |
|
|
|
{title && ( |
|
|
|
<View className="text-lg font-semibold text-gray-800 mb-4">{title}</View> |
|
|
|
<View className="font-semibold text-gray-800 mb-4">{title}</View> |
|
|
|
)} |
|
|
|
|
|
|
|
{coupons.length === 0 ? ( |
|
|
|
showEmpty && ( |
|
|
|
<View className="text-center py-10 px-5 text-gray-500 text-sm"> |
|
|
|
<View className="text-center py-10 px-5 text-gray-500"> |
|
|
|
{emptyText} |
|
|
|
</View> |
|
|
|
) |
|
|
@ -61,14 +61,14 @@ const CouponList: React.FC<CouponListProps> = ({ |
|
|
|
return ( |
|
|
|
<View> |
|
|
|
{title && ( |
|
|
|
<View className="text-lg font-semibold text-gray-800 mb-4 pl-4"> |
|
|
|
<View className="font-semibold text-gray-800 mb-4 pl-4"> |
|
|
|
{title} |
|
|
|
</View> |
|
|
|
)} |
|
|
|
|
|
|
|
{coupons.length === 0 ? ( |
|
|
|
showEmpty && ( |
|
|
|
<View className="text-center py-10 px-5 text-gray-500 text-sm"> |
|
|
|
<View className="text-center py-10 px-5 text-gray-500"> |
|
|
|
{emptyText} |
|
|
|
</View> |
|
|
|
) |
|
|
|