Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: 💡 Migrate ResetButton to MUI5 #755

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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