Skip to content

Commit

Permalink
refactor: πŸ’‘ Migrate ResetButton to MUI5
Browse files Browse the repository at this point in the history
Migrate ResetButtonWithConfirmation to MUI5

βœ… Closes: #754
  • Loading branch information
aharpt committed Aug 5, 2022
1 parent 9de243b commit 3f51684
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import React from 'react';
import {Grid} from '@material-ui/core';
import {Grid} from '@mui/material';
import {
SQFormResetButtonWithConfirmation as SQFormResetButtonWithConfirmationComponent,
SQFormTextField,
} from '../src';
import {SQFormStoryWrapper} from './components/SQFormStoryWrapper';
import {createDocsPage} from './utils/createDocsPage';
import {SQFormStoryWrapper} from '../old_stories/components/SQFormStoryWrapper';
import {createDocsPage} from '../old_stories/utils/createDocsPage';
import type {Meta} from '@storybook/react';
import type {SQFormResetButtonWithConfirmationProps} from 'components/SQForm/SQFormResetButtonWithConfirmation';
import type {CustomStory} from './types/storyHelperTypes';
import type {CustomStory} from '../old_stories/types/storyHelperTypes';

const meta: Meta = {
title: 'Components/SQFormResetButtonWithConfirmation',
Expand Down Expand Up @@ -43,11 +43,11 @@ const Template: CustomStory<SQFormResetButtonWithConfirmationProps> = (
showSubmit={false}
{...sqFormProps}
>
<Grid container alignItems="center" spacing={2}>
<Grid item>
<Grid container={true} sx={{alignItems: 'center'}} spacing={2}>
<Grid item={true}>
<SQFormTextField name="test" label="Test Field" />
</Grid>
<Grid item>
<Grid item={true}>
<SQFormResetButtonWithConfirmationComponent {...rest} />
</Grid>
</Grid>
Expand Down

0 comments on commit 3f51684

Please sign in to comment.