Skip to content

Commit 29aad62

Browse files
[internal] Fix naming to match convention
1 parent 5ff7d13 commit 29aad62

File tree

10 files changed

+16
-16
lines changed

10 files changed

+16
-16
lines changed

docs/src/pages/premium-themes/onepirate/modules/form/FormButton.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ import Button from '../components/Button';
55
import defer from './defer';
66

77
function FormButton(props) {
8-
const { disabled, mounted, ...others } = props;
8+
const { disabled, mounted, ...other } = props;
99
return (
1010
<Button
1111
disabled={!mounted || !!disabled}
1212
type="submit"
1313
variant="contained"
14-
{...others}
14+
{...other}
1515
/>
1616
);
1717
}

docs/src/pages/premium-themes/onepirate/modules/form/FormButton.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ interface FormButtonProps {
1111
function FormButton<C extends React.ElementType>(
1212
props: FormButtonProps & ButtonProps<C, { component?: C }>,
1313
) {
14-
const { disabled, mounted, ...others } = props;
14+
const { disabled, mounted, ...other } = props;
1515
return (
1616
<Button
1717
disabled={!mounted || !!disabled}
1818
type="submit"
1919
variant="contained"
20-
{...(others as ButtonProps<C, { component?: C }>)}
20+
{...(other as ButtonProps<C, { component?: C }>)}
2121
/>
2222
);
2323
}

docs/src/pages/premium-themes/onepirate/modules/form/FormFeedback.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ const Root = styled('div', {
2727
}));
2828

2929
function FormFeedback(props) {
30-
const { className, children, error, success, ...others } = props;
30+
const { className, children, error, success, ...other } = props;
3131

3232
return (
33-
<Root error={error} success={success} className={className} {...others}>
33+
<Root error={error} success={success} className={className} {...other}>
3434
<Typography color="inherit">{children}</Typography>
3535
</Root>
3636
);

docs/src/pages/premium-themes/onepirate/modules/form/FormFeedback.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ const Root = styled('div', {
3232
}));
3333

3434
export default function FormFeedback(props: FormFeedbackProps) {
35-
const { className, children, error, success, ...others } = props;
35+
const { className, children, error, success, ...other } = props;
3636

3737
return (
38-
<Root error={error} success={success} className={className} {...others}>
38+
<Root error={error} success={success} className={className} {...other}>
3939
<Typography color="inherit">{children}</Typography>
4040
</Root>
4141
);

packages/mui-codemod/src/v5.0.0/base-remove-component-prop.test/actual.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import Badge from '@mui/base/Badge';
77

88
<Input component={CustomRoot} />;
99

10-
<Input component={CustomRoot} {...others}></Input>;
10+
<Input component={CustomRoot} {...other}></Input>;
1111

1212
<Switch
1313
component={CustomRoot}

packages/mui-codemod/src/v5.0.0/base-remove-component-prop.test/actual.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import Badge from '@mui/base/Badge';
88

99
<Input component={CustomRoot} />;
1010

11-
<Input component={CustomRoot} {...others}></Input>;
11+
<Input component={CustomRoot} {...other}></Input>;
1212

1313
<Switch
1414
component={CustomRoot}

packages/mui-codemod/src/v5.0.0/base-remove-component-prop.test/expected.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import Badge from '@mui/base/Badge';
1111

1212
<Input slots={{
1313
root: CustomRoot
14-
}} {...others}></Input>;
14+
}} {...other}></Input>;
1515

1616
<Switch
1717
slots={{

packages/mui-codemod/src/v5.0.0/base-remove-component-prop.test/expected.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import Badge from '@mui/base/Badge';
1212

1313
<Input<typeof CustomRoot> slots={{
1414
root: CustomRoot
15-
}} {...others}></Input>;
15+
}} {...other}></Input>;
1616

1717
<Switch<typeof CustomRoot>
1818
slots={{

packages/mui-joy/src/Autocomplete/Autocomplete.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ describe('Joy <Autocomplete />', () => {
575575
it('should trigger a form expectedly', () => {
576576
const handleSubmit = spy();
577577
function Test(props: any) {
578-
const { key, ...others } = props;
578+
const { key, ...other } = props;
579579
return (
580580
<div
581581
onKeyDown={(event) => {
@@ -584,7 +584,7 @@ describe('Joy <Autocomplete />', () => {
584584
}
585585
}}
586586
>
587-
<Autocomplete autoFocus options={['one', 'two']} key={key} {...others} />
587+
<Autocomplete autoFocus options={['one', 'two']} key={key} {...other} />
588588
</div>
589589
);
590590
}

packages/mui-material/src/Autocomplete/Autocomplete.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -856,7 +856,7 @@ describe('<Autocomplete />', () => {
856856
it('should trigger a form expectedly', () => {
857857
const handleSubmit = spy();
858858
function Test(props) {
859-
const { key, ...others } = props;
859+
const { key, ...other } = props;
860860
return (
861861
<div
862862
onKeyDown={(event) => {
@@ -869,7 +869,7 @@ describe('<Autocomplete />', () => {
869869
options={['one', 'two']}
870870
renderInput={(props2) => <TextField {...props2} autoFocus />}
871871
key={key}
872-
{...others}
872+
{...other}
873873
/>
874874
</div>
875875
);

0 commit comments

Comments
 (0)