mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-28 16:38:10 +00:00
chore: fix some comments (#2427)
Signed-off-by: TechVest <techdashen@qq.com> Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
This commit is contained in:
parent
9dcaff4301
commit
c1fbba2768
|
@ -36,7 +36,7 @@ export class ImageUploadForm extends Component<
|
||||||
<form className="image-upload-form d-inline">
|
<form className="image-upload-form d-inline">
|
||||||
{this.props.imageSrc && (
|
{this.props.imageSrc && (
|
||||||
<span className="d-inline-block position-relative mb-2">
|
<span className="d-inline-block position-relative mb-2">
|
||||||
{/* TODO: Create "Current Iamge" translation for alt text */}
|
{/* TODO: Create "Current Image" translation for alt text */}
|
||||||
<img
|
<img
|
||||||
alt=""
|
alt=""
|
||||||
src={this.props.imageSrc}
|
src={this.props.imageSrc}
|
||||||
|
|
|
@ -75,7 +75,7 @@ export class PictrsImage extends Component<PictrsImageProps, any> {
|
||||||
return this.props.src;
|
return this.props.src;
|
||||||
}
|
}
|
||||||
|
|
||||||
// If theres no match, then its not a pictrs image
|
// If there's no match, then it's not a pictrs image
|
||||||
if (!url.pathname.includes("/pictrs/image/")) {
|
if (!url.pathname.includes("/pictrs/image/")) {
|
||||||
return this.props.src;
|
return this.props.src;
|
||||||
}
|
}
|
||||||
|
|
|
@ -168,7 +168,7 @@ function bestDateFns(
|
||||||
return locale;
|
return locale;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Fallback to base langauge first, to avoid mixing languages.
|
// Fallback to base language first, to avoid mixing languages.
|
||||||
return langToLocale(base_lang) ?? localeByCode[EN_US];
|
return langToLocale(base_lang) ?? localeByCode[EN_US];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue