Skip to content

Commit 15f3a62

Browse files
samsharabarshathakuri
authored andcommitted
fix: correct typos
1 parent 7c4e136 commit 15f3a62

File tree

93 files changed

+199
-192
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

93 files changed

+199
-192
lines changed

app/scripts/translatte/commands/applyMigrations.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ async function applyMigrations(
135135
console.info(`Found ${selectedMigrationFilesAttrs.length} migration files`);
136136

137137
if (selectedMigrationFilesAttrs.length < 1) {
138-
throw 'There should be atleast 1 migration file';
138+
throw 'There should be at least 1 migration file';
139139
}
140140

141141
const selectedMigrations = await readMigrations(

app/src/App/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,9 @@ function Application() {
157157
] = useState<Record<string, LanguageNamespaceStatus>>({});
158158

159159
const setAndStoreCurrentLanguage = useCallback(
160-
(newLanugage: Language) => {
161-
setCurrentLanguage(newLanugage);
162-
setToStorage(KEY_LANGUAGE_STORAGE, newLanugage);
160+
(newLanguage: Language) => {
161+
setCurrentLanguage(newLanguage);
162+
setToStorage(KEY_LANGUAGE_STORAGE, newLanguage);
163163
},
164164
[],
165165
);

app/src/components/Navbar/LanguageDropdown/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const languageList = mapToList(
3232
(value, key) => ({ key: key as Language, value }),
3333
);
3434

35-
function LangaugeDropdown() {
35+
function LanguageDropdown() {
3636
const {
3737
currentLanguage,
3838
setCurrentLanguage,
@@ -90,4 +90,4 @@ function LangaugeDropdown() {
9090
);
9191
}
9292

93-
export default LangaugeDropdown;
93+
export default LanguageDropdown;

app/src/components/Navbar/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import useAuth from '#hooks/domain/useAuth';
2121

2222
import AuthenticatedUserDropdown from './AuthenticatedUserDropdown';
2323
import CountryDropdown from './CountryDropdown';
24-
import LangaugeDropdown from './LanguageDropdown';
24+
import LanguageDropdown from './LanguageDropdown';
2525

2626
import i18n from './i18n.json';
2727
import styles from './styles.module.css';
@@ -71,7 +71,7 @@ function Navbar(props: Props) {
7171
className={styles.actions}
7272
variant="tertiary"
7373
>
74-
<LangaugeDropdown />
74+
<LanguageDropdown />
7575
{!isAuthenticated && (
7676
<>
7777
<NavigationTab

app/src/components/domain/ActiveOperationMap/i18n.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"operationPopoverEmpty": "No Current Operations",
1616
"operationType": "Type of Appeal",
1717
"operationFilterTypePlaceholder": "All Appeal Types",
18-
"operationDisastertype": "Disaster Type",
18+
"operationDisasterType": "Disaster Type",
1919
"operationFilterDisastersPlaceholder": "All Disaster Types",
2020
"mapStartDateAfter": "Start After",
2121
"mapStartDateBefore": "Start Before",

app/src/components/domain/ActiveOperationMap/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ function ActiveOperationMap(props: Props) {
349349
[setClickedPoint],
350350
);
351351

352-
const handleClearFiltersButtonclick = useCallback(() => {
352+
const handleClearFiltersButtonClick = useCallback(() => {
353353
setFilter({});
354354
}, [setFilter]);
355355

@@ -403,15 +403,15 @@ function ActiveOperationMap(props: Props) {
403403
/>
404404
<DisasterTypeSelectInput
405405
placeholder={strings.operationFilterDisastersPlaceholder}
406-
label={strings.operationDisastertype}
406+
label={strings.operationDisasterType}
407407
name="displacement"
408408
value={rawFilter.displacement}
409409
onChange={setFilterField}
410410
/>
411411
<div>
412412
<Button
413413
name={undefined}
414-
onClick={handleClearFiltersButtonclick}
414+
onClick={handleClearFiltersButtonClick}
415415
variant="secondary"
416416
disabled={!filtered}
417417
>

app/src/components/domain/AppealsTable/i18n.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"appealsTableType": "Appeal Type",
88
"appealsTableCode": "Appeal Code",
99
"appealsTableOperation": "Active Operation",
10-
"appealsTableDisastertype": "Disaster Type",
10+
"appealsTableDisasterType": "Disaster Type",
1111
"appealsTableRequestedAmount": "Funding Requirements",
1212
"appealsTableFundedAmount": "Funding Coverage",
1313
"appealsTableCountry": "Country",

app/src/components/domain/AppealsTable/index.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ function AppealsTable(props: Props) {
107107
const strings = useTranslation(i18n);
108108
const { api_appeal_type: appealTypeOptions } = useGlobalEnums();
109109

110-
const handleClearFiltersButtonclick = useCallback(() => {
110+
const handleClearFiltersButtonClick = useCallback(() => {
111111
setFilter({});
112112
}, [setFilter]);
113113

@@ -157,7 +157,7 @@ function AppealsTable(props: Props) {
157157
),
158158
createStringColumn<AppealListItem, string>(
159159
'dtype',
160-
strings.appealsTableDisastertype,
160+
strings.appealsTableDisasterType,
161161
(item) => item.dtype?.name,
162162
{ sortable: true },
163163
),
@@ -198,7 +198,7 @@ function AppealsTable(props: Props) {
198198
strings.appealsTableType,
199199
strings.appealsTableCode,
200200
strings.appealsTableOperation,
201-
strings.appealsTableDisastertype,
201+
strings.appealsTableDisasterType,
202202
strings.appealsTableRequestedAmount,
203203
strings.appealsTableFundedAmount,
204204
strings.appealsTableCountry,
@@ -294,15 +294,15 @@ function AppealsTable(props: Props) {
294294
/>
295295
<DisasterTypeSelectInput
296296
placeholder={strings.appealsTableFilterDisastersPlaceholder}
297-
label={strings.appealsTableDisastertype}
297+
label={strings.appealsTableDisasterType}
298298
name="displacement"
299299
value={rawFilter.displacement}
300300
onChange={setFilterField}
301301
/>
302302
<div className={styles.filterActions}>
303303
<Button
304304
name={undefined}
305-
onClick={handleClearFiltersButtonclick}
305+
onClick={handleClearFiltersButtonClick}
306306
variant="secondary"
307307
disabled={!filtered}
308308
>

app/src/components/domain/GlobalMap/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,22 +78,22 @@ function GlobalMap(props: Props) {
7878
...baseMapProps
7979
} = props;
8080

81-
const [hoveredCountryIso3, setHoverdCountryIso3] = useState<string | undefined>();
81+
const [hoveredCountryIso3, setHoveredCountryIso3] = useState<string | undefined>();
8282

8383
const handleFeatureMouseEnter = (feature: MapboxGeoJSONFeature) => {
8484
const hoveredFeatureProperties = feature.properties as (
8585
AdminZeroFeatureProperties | undefined
8686
);
8787

88-
setHoverdCountryIso3(hoveredFeatureProperties?.iso3);
88+
setHoveredCountryIso3(hoveredFeatureProperties?.iso3);
8989

9090
if (onHover) {
9191
onHover(hoveredFeatureProperties);
9292
}
9393
};
9494

9595
const handleFeatureMouseLeave = () => {
96-
setHoverdCountryIso3(undefined);
96+
setHoveredCountryIso3(undefined);
9797

9898
if (onHover) {
9999
onHover(undefined);

app/src/components/domain/GoMultiFileInput/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import React, {
33
useRef,
44
} from 'react';
55
import { DeleteBinFillIcon } from '@ifrc-go/icons';
6-
import type {
6+
import {
77
Button,
8-
ButtonVariant,
8+
type ButtonVariant,
99
InputError,
1010
type NameType,
1111
RawFileInput,

0 commit comments

Comments
 (0)