From c1125f9b5b7a6385d7c4323faf01e8dc872df75c Mon Sep 17 00:00:00 2001 From: "Derek W. S. Gray" Date: Tue, 23 Aug 2022 15:45:50 -0400 Subject: [PATCH] Just typo corrections. --- src/extractor/extractGrids.ts | 4 ++-- src/extractor/extractMotion.ts | 2 +- src/index.ts | 2 +- src/transformer/originalFormatTransformer.ts | 2 +- src/ui/components/Select.tsx | 4 ++-- src/ui/modules/downloadJson.ts | 6 +++--- src/ui/modules/urlExport.ts | 2 +- src/utilities/accessToken.ts | 2 +- src/utilities/deepMerge.ts | 2 +- src/utilities/getTokenNodes.ts | 2 +- src/utilities/groupByName.ts | 4 ++-- src/utilities/prefixTokenName.ts | 2 +- 12 files changed, 17 insertions(+), 17 deletions(-) diff --git a/src/extractor/extractGrids.ts b/src/extractor/extractGrids.ts index 389d5f79..89768a28 100644 --- a/src/extractor/extractGrids.ts +++ b/src/extractor/extractGrids.ts @@ -36,7 +36,7 @@ const rowColumnValues = (grid: RowsColsLayoutGrid) => ({ value: grid.pattern.toLowerCase() as GridPattern, type: 'string' as PropertyType }, - // undefined when aligment stretch + // undefined when alignment stretch ...(grid.sectionSize !== undefined && { sectionSize: { value: grid.sectionSize, @@ -54,7 +54,7 @@ const rowColumnValues = (grid: RowsColsLayoutGrid) => ({ type: 'string' as PropertyType }, count: getCount(grid.count), - // undefined when aligment centred + // undefined when alignment centred ...(grid.offset !== undefined && { offset: { value: grid.offset, diff --git a/src/extractor/extractMotion.ts b/src/extractor/extractMotion.ts index 7dacb573..b4184286 100644 --- a/src/extractor/extractMotion.ts +++ b/src/extractor/extractMotion.ts @@ -184,7 +184,7 @@ const formatEasingFunction = easingObject => { } const easing = (easing: Easing): easingPropertyInterface => { - // abort if invalif easing type + // abort if invalid easing type if (!('type' in easing) || easings[easing.type] === undefined) { return undefined } diff --git a/src/index.ts b/src/index.ts index 55657a8f..6c598951 100644 --- a/src/index.ts +++ b/src/index.ts @@ -77,7 +77,7 @@ if (figma.command === commands.demo) { */ if (figma.command === commands.reset) { resetSettings() - // semd message + // send message figma.notify('⚙️ Settings have been reset.') figma.closePlugin() } diff --git a/src/transformer/originalFormatTransformer.ts b/src/transformer/originalFormatTransformer.ts index df51b013..ba4803f3 100644 --- a/src/transformer/originalFormatTransformer.ts +++ b/src/transformer/originalFormatTransformer.ts @@ -36,7 +36,7 @@ const defaultValueTransformer = propertyGroupValues => { } // define object const transformedProperties = {} - // transform proeprties + // transform properties Object.keys(propertyGroupValues).forEach(function (key) { // if this is the final level if (Object.prototype.hasOwnProperty.call(propertyGroupValues[key], 'value')) { diff --git a/src/ui/components/Select.tsx b/src/ui/components/Select.tsx index d7bfa70e..9f67f964 100644 --- a/src/ui/components/Select.tsx +++ b/src/ui/components/Select.tsx @@ -258,7 +258,7 @@ export const Select = ({ } const expandButtonClass = isExpanded ? 'select-menu__button--active' : '' - const expanListClass = isExpanded ? 'select-menu__menu--active' : '' + const expandListClass = isExpanded ? 'select-menu__menu--active' : '' const disabledColorClass = isDisabled ? 'icon--black-3' : '' return ( @@ -282,7 +282,7 @@ export const Select = ({