Skip to content

Commit 32be281

Browse files
committed
feat: Remove named export
1 parent 15f9025 commit 32be281

18 files changed

+18
-18
lines changed

snapshots/demo-js/IconAlipay.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ interface Props extends DOMAttributes<SVGElement> {
99
className?: string;
1010
}
1111

12-
export declare const IconAlipay: FunctionComponent<Props>;
12+
declare const IconAlipay: FunctionComponent<Props>;
1313

1414
export default IconAlipay;

snapshots/demo-js/IconAlipay.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const DEFAULT_STYLE = {
77
display: 'block',
88
};
99

10-
export const IconAlipay = ({ size, color, style: _style, ...rest }) => {
10+
const IconAlipay = ({ size, color, style: _style, ...rest }) => {
1111
const style = _style ? { ...DEFAULT_STYLE, ..._style } : DEFAULT_STYLE;
1212

1313
return (

snapshots/demo-js/IconSetup.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ interface Props extends DOMAttributes<SVGElement> {
99
className?: string;
1010
}
1111

12-
export declare const IconSetup: FunctionComponent<Props>;
12+
declare const IconSetup: FunctionComponent<Props>;
1313

1414
export default IconSetup;

snapshots/demo-js/IconSetup.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const DEFAULT_STYLE = {
77
display: 'block',
88
};
99

10-
export const IconSetup = ({ size, color, style: _style, ...rest }) => {
10+
const IconSetup = ({ size, color, style: _style, ...rest }) => {
1111
const style = _style ? { ...DEFAULT_STYLE, ..._style } : DEFAULT_STYLE;
1212

1313
return (

snapshots/demo-js/IconUser.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ interface Props extends DOMAttributes<SVGElement> {
99
className?: string;
1010
}
1111

12-
export declare const IconUser: FunctionComponent<Props>;
12+
declare const IconUser: FunctionComponent<Props>;
1313

1414
export default IconUser;

snapshots/demo-js/IconUser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const DEFAULT_STYLE = {
77
display: 'block',
88
};
99

10-
export const IconUser = ({ size, color, style: _style, ...rest }) => {
10+
const IconUser = ({ size, color, style: _style, ...rest }) => {
1111
const style = _style ? { ...DEFAULT_STYLE, ..._style } : DEFAULT_STYLE;
1212

1313
return (

snapshots/demo-js/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ interface Props extends DOMAttributes<SVGElement> {
1010
className?: string;
1111
}
1212

13-
export declare const IconFont: FunctionComponent<Props>;
13+
declare const IconFont: FunctionComponent<Props>;
1414

1515
export default IconFont;

snapshots/demo-js/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import IconAlipay from './IconAlipay';
55
import IconUser from './IconUser';
66
import IconSetup from './IconSetup';
77

8-
export const IconFont = ({ name, ...rest }) => {
8+
const IconFont = ({ name, ...rest }) => {
99
switch (name) {
1010
case 'alipay':
1111
return <IconAlipay {...rest} />;

snapshots/demo-ts/IconAlipay.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const DEFAULT_STYLE: CSSProperties = {
1515
display: 'block',
1616
};
1717

18-
export const IconAlipay: FunctionComponent<Props> = ({ size, color, style: _style, ...rest }) => {
18+
const IconAlipay: FunctionComponent<Props> = ({ size, color, style: _style, ...rest }) => {
1919
const style = _style ? { ...DEFAULT_STYLE, ..._style } : DEFAULT_STYLE;
2020

2121
return (

snapshots/demo-ts/IconSetup.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const DEFAULT_STYLE: CSSProperties = {
1515
display: 'block',
1616
};
1717

18-
export const IconSetup: FunctionComponent<Props> = ({ size, color, style: _style, ...rest }) => {
18+
const IconSetup: FunctionComponent<Props> = ({ size, color, style: _style, ...rest }) => {
1919
const style = _style ? { ...DEFAULT_STYLE, ..._style } : DEFAULT_STYLE;
2020

2121
return (

0 commit comments

Comments
 (0)