refactor: unify export directive style (#6751)

This commit is contained in:
Joshua Chen 2022-02-24 17:25:17 +08:00 committed by GitHub
parent 0c807b3501
commit 0d14470d54
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
105 changed files with 315 additions and 510 deletions

View file

@ -114,6 +114,5 @@ declare module '@endiliey/react-ideal-image' {
width: number;
}
declare const IdealImage: (props: ImageProps) => JSX.Element;
export default IdealImage;
export default function IdealImage(props: ImageProps): JSX.Element;
}

View file

@ -80,7 +80,7 @@ const getMessage = (icon: IconKey, state: State) => {
}
};
function IdealImage(props: Props): JSX.Element {
export default function IdealImage(props: Props): JSX.Element {
const {alt, className, img} = props;
// In dev env just use regular img with original file
@ -112,5 +112,3 @@ function IdealImage(props: Props): JSX.Element {
/>
);
}
export default IdealImage;