Skip to content

Commit fb5bc9b

Browse files
committed
[TextField] Update stories with renamed component and prop changes
1 parent 87181fe commit fb5bc9b

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

polaris-react/src/components/TextField/TextField.stories.tsx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {
1414
TextField,
1515
Icon,
1616
Tooltip,
17-
VerticalStack,
17+
BlockStack,
1818
} from '@shopify/polaris';
1919
import {
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
}

0 commit comments

Comments
 (0)