fix typos

This commit is contained in:
CKD 2025-03-06 08:43:29 -08:00
parent 5856ecd48b
commit eb6ebcf4ba
5 changed files with 5 additions and 5 deletions

View File

@ -42,7 +42,7 @@ export default function DashboardNavbar({
if (!res.ok) return;
setUser(null);
// The root route will redirect to appropiate login page, be it the local one or the cloud one
// The root route will redirect to appropriate login page, be it the local one or the cloud one
navigate("/");
}, [navigate, setUser]);

View File

@ -12,7 +12,7 @@ function getRelativeTimeString(date: Date | number, lang = navigator.language):
// Get the amount of seconds between the given date and now
const deltaSeconds = Math.round((timeMs - Date.now()) / 1000);
// Array reprsenting one minute, hour, day, week, month, etc in seconds
// Array representing one minute, hour, day, week, month, etc in seconds
const cutoffs = [60, 3600, 86400, 86400 * 7, 86400 * 30, 86400 * 365, Infinity];
// Array equivalent to the above but in the string representation of the units

View File

@ -68,7 +68,7 @@ export default function USBStateStatus({
};
const props = StatusCardProps[state];
if (!props) {
console.log("Unsupport USB state: ", state);
console.log("Unsupported USB state: ", state);
return;
}

View File

@ -22,7 +22,7 @@ export const FeatureFlagProvider = ({
}) => {
const isFeatureEnabled = (minAppVersion: string) => {
// If no version is set, feature is disabled.
// The feature flag component can deside what to display as a fallback - either omit the component or like a "please upgrade to enable".
// The feature flag component can decide what to display as a fallback - either omit the component or like a "please upgrade to enable".
if (!appVersion) return false;
// Extract the base versions without prerelease identifier

View File

@ -121,7 +121,7 @@ export function Dialog({ onClose }: { onClose: () => void }) {
triggerError(err instanceof Error ? err.message : String(err));
})
.finally(() => {
// We do this beacues the mounting is too fast and the UI gets choppy
// We do this because the mounting is too fast and the UI gets choppy
// and the modal exit animation for like 500ms
setTimeout(() => {
setMountInProgress(false);