File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
polaris-react/src/components/TextField Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ import {
1414 TextField ,
1515 Icon ,
1616 Tooltip ,
17- VerticalStack ,
17+ BlockStack ,
1818} from '@shopify/polaris' ;
1919import {
2020 DeleteMinor ,
@@ -838,7 +838,7 @@ export function WithFormSubmit() {
838838 const [ onHandTotal , setOnHandTotal ] = useState ( 0 ) ;
839839
840840 return (
841- < VerticalStack gap = "2" >
841+ < BlockStack gap = "2" >
842842 < Form
843843 onSubmit = { ( event ) => {
844844 event . preventDefault ( ) ;
@@ -858,11 +858,15 @@ export function WithFormSubmit() {
858858 type = "number"
859859 selectTextOnFocus
860860 />
861- < Button primary submit disabled = { isNaN ( parseInt ( adjustment , 10 ) ) } >
861+ < Button
862+ variant = "primary"
863+ submit
864+ disabled = { isNaN ( parseInt ( adjustment , 10 ) ) }
865+ >
862866 Save
863867 </ Button >
864868 </ FormLayout >
865869 </ Form >
866- </ VerticalStack >
870+ </ BlockStack >
867871 ) ;
868872}
You can’t perform that action at this time.
0 commit comments