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:
TechVest 2024-04-17 21:19:21 +08:00 committed by GitHub
parent 9dcaff4301
commit c1fbba2768
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View file

@ -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}

View file

@ -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;
} }

View file

@ -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];
} }