Skip to content

Commit c5bfbde

Browse files
committed
Remove unused vars
1 parent 8352cbd commit c5bfbde

File tree

7 files changed

+7
-15
lines changed

7 files changed

+7
-15
lines changed

framer/Material-UI.framerfx/code/Checkbox.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as React from 'react';
22
import { addPropertyControls, ControlType } from 'framer';
3-
import MuiCheckbox, { CheckboxProps as MuiCheckboxProps } from '@material-ui/core/Checkbox';
4-
import FormControlLabel, { FormControlLabelProps } from '@material-ui/core/FormControlLabel';
3+
import MuiCheckbox from '@material-ui/core/Checkbox';
4+
import FormControlLabel from '@material-ui/core/FormControlLabel';
55

66
interface Props {
77
checked: boolean;

framer/Material-UI.framerfx/code/CircularProgress.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,8 @@ interface Props {
1313

1414
export function CircularProgress(props: Props): JSX.Element {
1515
const { width, height, ...other } = props;
16-
const style: React.CSSProperties = {
17-
width: 'width',
18-
height: 'height',
19-
};
2016

21-
return <MuiCircularProgress size={width} {...other} />;
17+
return <MuiCircularProgress size={width} style={{ width, height }} {...other} />;
2218
}
2319

2420
CircularProgress.defaultProps = {

framer/Material-UI.framerfx/code/RadioGroup.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import * as React from 'react';
22
import { addPropertyControls, ControlType } from 'framer';
33
import MuiRadioGroup from '@material-ui/core/RadioGroup';
4-
import FormControlLabel from '@material-ui/core/FormControlLabel';
54
import MuiFormLabel from '@material-ui/core/FormLabel';
65
import { Radio } from './Radio';
76

framer/scripts/templates/circular_progress.txt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,9 @@ interface Props {
99

1010
export function «componentName»(props: Props): JSX.Element {
1111
const { width, height, ...other } = props;
12-
const style: React.CSSProperties = {
13-
«& style»
14-
};
1512

1613
return (
17-
<Mui«componentName» size={width} {...other} />
14+
<Mui«componentName» size={width} style={{ width, height }} {...other} />
1815
)
1916
}
2017

framer/scripts/templates/radio_group.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import * as React from 'react';
33
import { addPropertyControls, ControlType } from 'framer';
44
import Mui«componentName» from '@material-ui/core/«componentName»';
5-
import FormControlLabel from '@material-ui/core/FormControlLabel';
65
import MuiFormLabel from '@material-ui/core/FormLabel';
76
import { Radio } from './Radio';
87

framer/scripts/templates/selection_control.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{{=« »=}}
22
import * as React from 'react';
33
import { addPropertyControls, ControlType } from 'framer';
4-
import Mui«componentName», { «componentName»Props as Mui«componentName»Props } from '@material-ui/core/«componentName»';
5-
import FormControlLabel, { FormControlLabelProps } from '@material-ui/core/FormControlLabel';
4+
import Mui«componentName» from '@material-ui/core/«componentName»';
5+
import FormControlLabel from '@material-ui/core/FormControlLabel';
66

77
interface Props {
88
«& tsInterface»

framer/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"extends": "../tsconfig.json",
33
"compilerOptions": {
44
"skipLibCheck": true,
5+
"noUnusedLocals": true,
56
"types": ["react"]
67
},
78
"include": ["Material-UI.framerfx/code"]

0 commit comments

Comments
 (0)