File tree Expand file tree Collapse file tree 2 files changed +19
-13
lines changed
packages/template-retail-react-app Expand file tree Collapse file tree 2 files changed +19
-13
lines changed Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff line change 104104 },
105105 {
106106 "path" : " build/vendor.js" ,
107- "maxSize" : " 328 kB"
107+ "maxSize" : " 332 kB"
108108 }
109109 ]
110110}
You can’t perform that action at this time.
0 commit comments