Skip to content

Commit 97e2457

Browse files
direct export
1 parent 93e4503 commit 97e2457

File tree

4 files changed

+4
-12
lines changed

4 files changed

+4
-12
lines changed

docs/src/pages/customization/components/Component.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ import React from 'react';
22
import ClassNames from 'docs/src/pages/customization/components/ClassNames';
33

44
// We can use ClassNames over and over.
5-
function Component() {
5+
export default function Component() {
66
return <ClassNames>Component</ClassNames>;
77
}
8-
9-
export default Component;

docs/src/pages/customization/components/Component.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ import React from 'react';
22
import ClassNames from 'docs/src/pages/customization/components/ClassNames';
33

44
// We can use ClassNames over and over.
5-
function Component() {
5+
export default function Component() {
66
return <ClassNames>Component</ClassNames>;
77
}
8-
9-
export default Component;

docs/src/pages/customization/components/InlineStyle.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ const style = {
1212
boxShadow: '0 3px 5px 2px rgba(255, 105, 135, .3)',
1313
};
1414

15-
function InlineStyle() {
15+
export default function InlineStyle() {
1616
return <Button style={style}>inline-style</Button>;
1717
}
18-
19-
export default InlineStyle;

docs/src/pages/customization/components/InlineStyle.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ const style = {
1212
boxShadow: '0 3px 5px 2px rgba(255, 105, 135, .3)',
1313
};
1414

15-
function InlineStyle() {
15+
export default function InlineStyle() {
1616
return <Button style={style}>inline-style</Button>;
1717
}
18-
19-
export default InlineStyle;

0 commit comments

Comments
 (0)