mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-06 10:20:09 +02:00
refactor: unify export directive style (#6751)
This commit is contained in:
parent
0c807b3501
commit
0d14470d54
105 changed files with 315 additions and 510 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue