@@ -109,7 +109,7 @@ function Iframe(props) {
frameBorder="0"
{...props}
/>
-
+ )
);
}
diff --git a/packages/mui-codemod/src/v5.0.0/jss-to-styled.test/third.expected.js b/packages/mui-codemod/src/v5.0.0/jss-to-styled.test/third.expected.js
index bd072a096a31d8..5525352eb6dfa0 100644
--- a/packages/mui-codemod/src/v5.0.0/jss-to-styled.test/third.expected.js
+++ b/packages/mui-codemod/src/v5.0.0/jss-to-styled.test/third.expected.js
@@ -27,10 +27,10 @@ const StyledCard = styled(Card)((
export const MyCard = ((props) => {
const { } = props;
return (
-
+ (
Submit
-
+ )
);
});
diff --git a/packages/mui-codemod/src/v5.0.0/jss-to-styled.test/withCreateStyles.expected.tsx b/packages/mui-codemod/src/v5.0.0/jss-to-styled.test/withCreateStyles.expected.tsx
index 63e961a28eff28..3ac787c22c4308 100644
--- a/packages/mui-codemod/src/v5.0.0/jss-to-styled.test/withCreateStyles.expected.tsx
+++ b/packages/mui-codemod/src/v5.0.0/jss-to-styled.test/withCreateStyles.expected.tsx
@@ -19,7 +19,7 @@ const Root = styled('div')((
const MyComponent = (props) => {
- return
;
+ return (
);
};
export default MyComponent;
\ No newline at end of file
diff --git a/packages/mui-codemod/src/v5.0.0/jss-to-styled.test/withCreateStyles1.expected.tsx b/packages/mui-codemod/src/v5.0.0/jss-to-styled.test/withCreateStyles1.expected.tsx
index 31d6cef054510c..55073749924256 100644
--- a/packages/mui-codemod/src/v5.0.0/jss-to-styled.test/withCreateStyles1.expected.tsx
+++ b/packages/mui-codemod/src/v5.0.0/jss-to-styled.test/withCreateStyles1.expected.tsx
@@ -19,7 +19,7 @@ const Root = styled('div')((
const MyComponent = (props) => {
const { } = props;
- return
;
+ return (
);
};
export default (MyComponent);
\ No newline at end of file
diff --git a/packages/mui-codemod/src/v5.0.0/jss-to-styled.test/withCreateStyles2.expected.tsx b/packages/mui-codemod/src/v5.0.0/jss-to-styled.test/withCreateStyles2.expected.tsx
index 7c5a2d26246fc7..6b84c2a5f090ad 100644
--- a/packages/mui-codemod/src/v5.0.0/jss-to-styled.test/withCreateStyles2.expected.tsx
+++ b/packages/mui-codemod/src/v5.0.0/jss-to-styled.test/withCreateStyles2.expected.tsx
@@ -15,7 +15,7 @@ const Root = styled('div')({
const MyComponent = (props) => {
const { } = props;
- return
;
+ return (
);
};
export default (MyComponent);
\ No newline at end of file
diff --git a/packages/mui-codemod/src/v5.0.0/jss-to-styled.test/withCreateStyles3.expected.tsx b/packages/mui-codemod/src/v5.0.0/jss-to-styled.test/withCreateStyles3.expected.tsx
index d40f46b983f2ce..cbede67798b670 100644
--- a/packages/mui-codemod/src/v5.0.0/jss-to-styled.test/withCreateStyles3.expected.tsx
+++ b/packages/mui-codemod/src/v5.0.0/jss-to-styled.test/withCreateStyles3.expected.tsx
@@ -15,7 +15,7 @@ const Root = styled('div')({
const MyComponent = (props) => {
- return
;
+ return (
);
};
export default MyComponent;
\ No newline at end of file
diff --git a/packages/mui-codemod/src/v5.0.0/jss-to-tss-react.test/expected-typescript-docs-example-params.tsx b/packages/mui-codemod/src/v5.0.0/jss-to-tss-react.test/expected-typescript-docs-example-params.tsx
index 11951ce8c1a7c0..af3bb81e8b8343 100644
--- a/packages/mui-codemod/src/v5.0.0/jss-to-tss-react.test/expected-typescript-docs-example-params.tsx
+++ b/packages/mui-codemod/src/v5.0.0/jss-to-tss-react.test/expected-typescript-docs-example-params.tsx
@@ -1,12 +1,13 @@
import { makeStyles } from 'tss-react/mui';
const useStyles = makeStyles<{color: 'primary' | 'secondary', padding: number}, 'child' | 'small'>({name: 'App'})((theme, { color, padding }, classes) => ({
- root: {
+ root: ({
padding: padding,
+
[`&:hover .${classes.child}`]: {
backgroundColor: theme.palette[color].main,
}
- },
+ }),
small: {},
child: {
border: '1px solid black',
@@ -28,7 +29,7 @@ function App({classes: classesProp}: {classes?: any}) {
});
return (
-
+ (
The Background take the primary theme color when the mouse hovers the parent.
@@ -36,7 +37,7 @@ function App({classes: classesProp}: {classes?: any}) {
The Background take the primary theme color when the mouse hovers the parent.
I am smaller than the other child.
-
+
)
);
}
diff --git a/packages/mui-codemod/src/v5.0.0/jss-to-tss-react.test/expected-typescript-docs-example.tsx b/packages/mui-codemod/src/v5.0.0/jss-to-tss-react.test/expected-typescript-docs-example.tsx
index b906d0c65b7665..495a6f1c8853a7 100644
--- a/packages/mui-codemod/src/v5.0.0/jss-to-tss-react.test/expected-typescript-docs-example.tsx
+++ b/packages/mui-codemod/src/v5.0.0/jss-to-tss-react.test/expected-typescript-docs-example.tsx
@@ -22,7 +22,7 @@ const useStyles = makeStyles