diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8b0b628..b8bde93 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -15,7 +15,7 @@ jobs: - uses: actions/setup-node@v3 with: node-version: 18 - cache: 'npm' + cache: "npm" cache-dependency-path: ./src/package-lock.json - name: Install dependencies @@ -40,9 +40,9 @@ jobs: - name: Set time zone to America/Chicago uses: szenius/set-timezone@v1.0 with: - timezoneLinux: 'America/Chicago' - timezoneMacos: 'America/Chicago' - timezoneWindows: 'America/Chicago' + timezoneLinux: "America/Chicago" + timezoneMacos: "America/Chicago" + timezoneWindows: "America/Chicago" - name: Run JS test suite run: | diff --git a/docs/privacy/README.md b/docs/privacy/README.md index 560755e..707c7f0 100644 --- a/docs/privacy/README.md +++ b/docs/privacy/README.md @@ -76,4 +76,4 @@ Limited Use requirements. If you have any questions or concerns about this Privacy Policy or our data handling practices, please contact us at [max@patii.uk](mailto:max@patii.uk) or -open a [GitHub issue](https://github.com/maxpatiiuk/calendar-plus/issues/new) \ No newline at end of file +open a [GitHub issue](https://github.com/maxpatiiuk/calendar-plus/issues/new) diff --git a/src/src/components/PowerTools/AutoComplete.tsx b/src/src/components/PowerTools/AutoComplete.tsx index 291cd54..18087b5 100644 --- a/src/src/components/PowerTools/AutoComplete.tsx +++ b/src/src/components/PowerTools/AutoComplete.tsx @@ -70,8 +70,9 @@ export function AutoComplete(): JSX.Element { if (select === undefined) return; // Don't change calendar if correct one is already selected - const currentCalendar = select.querySelector('[aria-selected="true"]') - ?.textContent; + const currentCalendar = select.querySelector( + '[aria-selected="true"]', + )?.textContent; if ( currentCalendar === calendars?.find(({ id }) => id === calendarId)?.summary diff --git a/src/src/localization/utils.ts b/src/src/localization/utils.ts index bae8e95..9163377 100644 --- a/src/src/localization/utils.ts +++ b/src/src/localization/utils.ts @@ -23,14 +23,12 @@ type Line = JSX.Element | string; export type Value = | RR) => Line> | RR; -type GetValueType = VALUE extends RR< - Language, - infer ValueType -> - ? ValueType extends (...args: RA) => Line - ? ReturnType - : ValueType - : never; +type GetValueType = + VALUE extends RR + ? ValueType extends (...args: RA) => Line + ? ReturnType + : ValueType + : never; export type Dictionary = IR; /**