Skip to content

Commit

Permalink
chore: reformat with Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
maxpatiiuk committed Apr 16, 2024
1 parent e7ac1b6 commit 014f013
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 15 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -40,9 +40,9 @@ jobs:
- name: Set time zone to America/Chicago
uses: szenius/[email protected]
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: |
Expand Down
2 changes: 1 addition & 1 deletion docs/privacy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 [[email protected]](mailto:[email protected]) or
open a [GitHub issue](https://github.com/maxpatiiuk/calendar-plus/issues/new)
open a [GitHub issue](https://github.com/maxpatiiuk/calendar-plus/issues/new)
5 changes: 3 additions & 2 deletions src/src/components/PowerTools/AutoComplete.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
14 changes: 6 additions & 8 deletions src/src/localization/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,12 @@ type Line = JSX.Element | string;
export type Value =
| RR<Language, (...args: RA<never>) => Line>
| RR<Language, Line>;
type GetValueType<VALUE extends Value> = VALUE extends RR<
Language,
infer ValueType
>
? ValueType extends (...args: RA<never>) => Line
? ReturnType<ValueType>
: ValueType
: never;
type GetValueType<VALUE extends Value> =
VALUE extends RR<Language, infer ValueType>
? ValueType extends (...args: RA<never>) => Line
? ReturnType<ValueType>
: ValueType
: never;
export type Dictionary = IR<Value>;

/**
Expand Down

0 comments on commit 014f013

Please sign in to comment.