Skip to content

Commit a62e501

Browse files
authored
fix: typos (#1771)
Fix a few typos identified with codespell. ## Launch Checklist - [X] Briefly describe the changes in this PR. - [ ] Link to related issues. - [ ] Write tests for all new functionality. - [ ] Add an entry to `CHANGELOG.md` under the `## main` section.
1 parent 0032b85 commit a62e501

File tree

9 files changed

+10
-10
lines changed

9 files changed

+10
-10
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020

2121
- Fixed the Expression editor (for long expressions) being able to be float under other components further down
2222
- Fixed an issue when clicking on a popup and then clicking on the map again
23-
- Fix modal close button possition
24-
- Fixed an issue with the generation of tranlations
23+
- Fix modal close button position
24+
- Fixed an issue with the generation of translations
2525
- Fix missing spec info when clicking next to a property
2626
- Fix Firefox open file that stopped working due to react upgrade
2727
- Fix issue with missing bottom error panel

cypress/e2e/modal-driver.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default class ModalDriver {
77
public when = {
88
fillLayers: (opts: { type: string; layer?: string; id?: string }) => {
99
// Having logic in test code is an anti pattern.
10-
// This should be splitted to multiple single responsibility functions
10+
// This should be split to multiple single responsibility functions
1111
const type = opts.type;
1212
const layer = opts.layer;
1313
let id;

cypress/e2e/modals.cy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ describe("modals", () => {
283283

284284

285285

286-
it("inlcude API key when change renderer", () => {
286+
it("include API key when change renderer", () => {
287287

288288
when.click("modal:settings.close-modal");
289289
when.click("nav:open");

src/components/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ export default class App extends React.Component<any, AppState> {
450450
if (message) {
451451
try {
452452
const objPath = message.split(":")[0];
453-
// Errors can be deply nested for example 'layers[0].filter[1][1][0]' we only care upto the property 'layers[0].filter'
453+
// Errors can be deeply nested for example 'layers[0].filter[1][1][0]' we only care upto the property 'layers[0].filter'
454454
const unsetPath = objPath.match(/^\S+?\[\d+\]\.[^[]+/)![0];
455455
unset(dirtyMapStyle, unsetPath);
456456
}

src/components/MapMaplibreGlLayerPopup.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class FeatureLayerPopup extends React.Component<FeatureLayerPopupProps> {
5757
// Default color
5858
return "black";
5959
}
60-
// This is quite complex, just incase there's an edgecase we're missing
60+
// This is quite complex, just in case there's an edgecase we're missing
6161
// always return black if we get an unexpected error.
6262
catch (err) {
6363
console.warn("Unable to get feature color, error:", err);

src/components/_DataProperty.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import { type MappedLayerErrors } from "../libs/definitions";
2121

2222

2323
function setStopRefs(props: DataPropertyInternalProps, state: DataPropertyState) {
24-
// This is initialsed below only if required to improved performance.
24+
// This is initialised below only if required to improved performance.
2525
let newRefs: {[key: number]: string} | undefined;
2626

2727
if(props.value && props.value.stops) {

src/components/_ZoomProperty.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import { type MappedLayerErrors } from "../libs/definitions";
2424
* When the stops are reordered the references are also updated (see this.orderStops) this allows React to use the same key for the element and keep keyboard focus.
2525
*/
2626
function setStopRefs(props: ZoomPropertyInternalProps, state: ZoomPropertyState) {
27-
// This is initialsed below only if required to improved performance.
27+
// This is initialised below only if required to improved performance.
2828
let newRefs: {[key: number]: string} = {};
2929

3030
if(props.value && (props.value as ZoomWithStops).stops) {

src/libs/layerwatcher.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export default class LayerWatcher {
2525

2626
// Since we scan over all features we want to avoid this as much as
2727
// possible and only do it after a batch of data has loaded because
28-
// we only care eventuall about knowing the fields in the vector layers
28+
// we only care eventually about knowing the fields in the vector layers
2929
this.throttledAnalyzeVectorLayerFields = throttle(this.analyzeVectorLayerFields, 5000);
3030
}
3131

src/styles/index.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
border-radius: 2px;
3434
position: relative;
3535

36-
// HACK: Overide
36+
// HACK: Override
3737
.maputnik-input-block {
3838
margin: vars.$margin-2;
3939
}

0 commit comments

Comments
 (0)