Add orders screen
This commit is contained in:
20
app/src/app/(tabs)/orders.tsx
Normal file
20
app/src/app/(tabs)/orders.tsx
Normal file
@@ -0,0 +1,20 @@
|
||||
import type { JSX } from "react";
|
||||
import { ScrollView, View } from "react-native";
|
||||
import { Typography } from "heroui-native";
|
||||
import { ORDERS } from "@/data/mock";
|
||||
import { OrderRow } from "@/components/OrderRow";
|
||||
|
||||
export default function OrdersTab(): JSX.Element {
|
||||
return (
|
||||
<ScrollView className="flex-1 bg-background">
|
||||
<View className="gap-2.5 p-4 md:mx-auto md:w-full md:max-w-2xl">
|
||||
<Typography type="h4" className="mb-1">
|
||||
My Orders
|
||||
</Typography>
|
||||
{ORDERS.map((order) => (
|
||||
<OrderRow key={order.id} order={order} />
|
||||
))}
|
||||
</View>
|
||||
</ScrollView>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user