Skip to content

Commit a5f6b52

Browse files
committed
Take care of issue vitest-dev/vitest#4185
1 parent 5743653 commit a5f6b52

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

chartlets.js/packages/lib/src/plugins/mui/Box.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,17 @@ interface BoxState extends ComponentState {
1010

1111
interface BoxProps extends ComponentProps, BoxState {}
1212

13-
export function Box({
13+
export const Box = ({
1414
id,
1515
style,
1616
color,
1717
component,
1818
children: nodes,
1919
onChange,
20-
}: BoxProps) {
20+
}: BoxProps) => {
2121
return (
2222
<MuiBox id={id} style={style} color={color} component={component || "div"}>
2323
<Children nodes={nodes} onChange={onChange} />
2424
</MuiBox>
2525
);
26-
}
26+
};

chartlets.js/packages/lib/src/plugins/mui/CircularProgress.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ interface CircularProgressState extends ComponentState {
1010

1111
interface CircularProgressProps extends ComponentProps, CircularProgressState {}
1212

13-
export function CircularProgress({
13+
export const CircularProgress = ({
1414
id,
1515
style,
1616
size,
1717
value,
1818
variant,
19-
}: CircularProgressProps) {
19+
}: CircularProgressProps) => {
2020
return (
2121
<MuiCircularProgress
2222
id={id}
@@ -26,4 +26,4 @@ export function CircularProgress({
2626
variant={variant}
2727
/>
2828
);
29-
}
29+
};

chartlets.js/packages/lib/src/plugins/mui/LinearProgress.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ interface LinearProgressState extends ComponentState {
1010

1111
interface LinearProgressProps extends ComponentProps, LinearProgressState {}
1212

13-
export function LinearProgress({
13+
export const LinearProgress = ({
1414
id,
1515
style,
1616
value,
1717
variant,
18-
}: LinearProgressProps) {
18+
}: LinearProgressProps) => {
1919
return (
2020
<MuiLinearProgress id={id} style={style} value={value} variant={variant} />
2121
);
22-
}
22+
};

chartlets.js/packages/lib/src/plugins/mui/Typography.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ interface TypographyState extends ComponentState {
1313

1414
interface TypographyProps extends ComponentProps, TypographyState {}
1515

16-
export function Typography({
16+
export const Typography = ({
1717
id,
1818
style,
1919
align,
@@ -22,7 +22,7 @@ export function Typography({
2222
variant,
2323
children: nodes,
2424
onChange,
25-
}: TypographyProps) {
25+
}: TypographyProps) => {
2626
return (
2727
<MuiTypography
2828
id={id}
@@ -35,4 +35,4 @@ export function Typography({
3535
<Children nodes={nodes} onChange={onChange} />
3636
</MuiTypography>
3737
);
38-
}
38+
};

0 commit comments

Comments
 (0)