mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-12-22 19:01:26 +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
3 changed files with 3 additions and 3 deletions
|
@ -36,7 +36,7 @@ export class ImageUploadForm extends Component<
|
|||
<form className="image-upload-form d-inline">
|
||||
{this.props.imageSrc && (
|
||||
<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
|
||||
alt=""
|
||||
src={this.props.imageSrc}
|
||||
|
|
|
@ -75,7 +75,7 @@ export class PictrsImage extends Component<PictrsImageProps, any> {
|
|||
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/")) {
|
||||
return this.props.src;
|
||||
}
|
||||
|
|
|
@ -168,7 +168,7 @@ function bestDateFns(
|
|||
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];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue