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 4aad1b7
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
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 4aad1b7

Please sign in to comment.