Skip to content

Commit

Permalink
[TextField] Update stories with renamed component and prop changes
Browse files Browse the repository at this point in the history
  • Loading branch information
laurkim committed Sep 8, 2023
1 parent 87181fe commit fb5bc9b
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions polaris-react/src/components/TextField/TextField.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
TextField,
Icon,
Tooltip,
VerticalStack,
BlockStack,
} from '@shopify/polaris';
import {
DeleteMinor,
Expand Down Expand Up @@ -838,7 +838,7 @@ export function WithFormSubmit() {
const [onHandTotal, setOnHandTotal] = useState(0);

return (
<VerticalStack gap="2">
<BlockStack gap="2">
<Form
onSubmit={(event) => {
event.preventDefault();
Expand All @@ -858,11 +858,15 @@ export function WithFormSubmit() {
type="number"
selectTextOnFocus
/>
<Button primary submit disabled={isNaN(parseInt(adjustment, 10))}>
<Button
variant="primary"
submit
disabled={isNaN(parseInt(adjustment, 10))}
>
Save
</Button>
</FormLayout>
</Form>
</VerticalStack>
</BlockStack>
);
}

0 comments on commit fb5bc9b

Please sign in to comment.