From 4aad1b78ad88ca7e6e43ae8f324a3fa42b0b17d4 Mon Sep 17 00:00:00 2001 From: Max Patiiuk Date: Mon, 15 Apr 2024 19:52:41 -0700 Subject: [PATCH] chore: reformat with Prettier --- .github/workflows/test.yml | 5 +++-- docs/privacy/README.md | 2 +- src/src/components/PowerTools/AutoComplete.tsx | 5 +++-- src/src/localization/utils.ts | 14 ++++++-------- 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8b0b628..af28bbb 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -22,9 +22,10 @@ jobs: run: npm ci - name: Create mock env files + working-directory: ./backend run: | - cp ./backend/.env.example ./backend/.env.production.local - cp ./backend/.env.example ./backend/.env.development.local + cp .env.example .env.production.local + cp .env.example .env.development.local - name: Build front-end run: npx webpack --mode production 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; /**