Skip to content

Commit 31ed766

Browse files
Align Order Lookup form in center for Auth users (#3044)
1 parent 798eaa2 commit 31ed766

File tree

2 files changed

+19
-13
lines changed

2 files changed

+19
-13
lines changed

packages/template-retail-react-app/app/pages/order-status/index.jsx

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,15 @@ const OrderStatusPage = () => {
5454
</Heading>
5555
</Container>
5656
<Container maxW="container.lg" px={4} mt={8} pb={{base: 8, md: 16}}>
57-
<Grid
58-
templateColumns={{base: '1fr', md: '1fr 1fr'}}
59-
gap={8}
60-
justifyContent="center"
61-
alignItems="flex-start"
62-
>
63-
{/* Sign In Card - Only show if user is not registered */}
64-
{shouldShowSignInForm && (
57+
{shouldShowSignInForm ? (
58+
// Two-column layout when sign-in form is present
59+
<Grid
60+
templateColumns={{base: '1fr', md: '1fr 1fr'}}
61+
gap={8}
62+
justifyContent="center"
63+
alignItems="flex-start"
64+
>
65+
{/* Sign In Card */}
6566
<Box
6667
bg="white"
6768
borderRadius="md"
@@ -92,11 +93,16 @@ const OrderStatusPage = () => {
9293
</Button>
9394
</Stack>
9495
</Box>
95-
)}
9696

97-
{/* Order Lookup Card */}
98-
<OrderLookup onSubmit={handleOrderLookup} />
99-
</Grid>
97+
{/* Order Lookup Card */}
98+
<OrderLookup onSubmit={handleOrderLookup} />
99+
</Grid>
100+
) : (
101+
// Centered single-column layout when sign-in form is not present
102+
<Box display="flex" justifyContent="center">
103+
<OrderLookup onSubmit={handleOrderLookup} />
104+
</Box>
105+
)}
100106
</Container>
101107
</Box>
102108
)

packages/template-retail-react-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104
},
105105
{
106106
"path": "build/vendor.js",
107-
"maxSize": "328 kB"
107+
"maxSize": "332 kB"
108108
}
109109
]
110110
}

0 commit comments

Comments
 (0)