Skip to content

Commit

Permalink
Update OrderPage.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
miikii41 committed Feb 19, 2025
1 parent d1e9442 commit 1dd03d7
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/components/Home/Order/OrderPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ const OrderActionButtons = ({ status, navigation, onPress }: { status: string; n
return(
<ButtonContainer>

{(status === 'pending') && (
{(status === 'accepted') && (
<>
<ActionButton onPress={onPress}>
<ActionText>오픈채팅</ActionText>
Expand Down Expand Up @@ -183,9 +183,6 @@ const OrderPage = ( ) => {
const [isModalVisible, setIsModalVisible] = useState(false);
const request = Request();

orderList.forEach((order, index) => {
console.log(`📌 주문 ${index + 1}의 상태:`, JSON.stringify(order.order_status, null, 2));
});



Expand Down Expand Up @@ -414,8 +411,8 @@ orderList.forEach((order, index) => {
</View>
<OrderIDText>{order.order_uuid}</OrderIDText>
<OrderStatusLabel order_status={order.order_status} />
<OrderActionButtons status={order.order_status?.[0]?.status || ''} navigation={navigation} onPress={() => setIsModalVisible(true)} /> //현재 press 시 모두 거래 완료 모달임 , 추후 수정 필요
</OrderInfoBox>
<OrderActionButtons status={order.order_status?.[0]?.status || ''} navigation={navigation} onPress={() => setIsModalVisible(true)} />
</OrderInfoBox>
</View>
)}}
keyExtractor={(item: any) => item.order_uuid}
Expand Down

0 comments on commit 1dd03d7

Please sign in to comment.