Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanfbrito committed Aug 2, 2023
1 parent 5120108 commit a903e36
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/ipc/channels.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import type { AnyAction } from 'redux';

import type { Download } from '../downloads/common';
import type { OutlookEventsResponse } from '../outlookCalendar/type';
import type { Server } from '../servers/common';
import type { SystemIdleState } from '../userPresence/common';
import { OutlookEventsResponse } from '../outlookCalendar/type';

type ChannelToArgsMap = {
'redux/get-initial-state': () => unknown;
Expand Down
4 changes: 2 additions & 2 deletions src/outlookCalendar/actions.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Server } from '../servers/common';
import { OutlookCredentials } from './type';
import type { Server } from '../servers/common';
import type { OutlookCredentials } from './type';

export const OUTLOOK_CALENDAR_SET_CREDENTIALS =
'outlook-calendar/set-credentials';
Expand Down
2 changes: 1 addition & 1 deletion src/outlookCalendar/getOutlookEvents.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/* eslint-disable new-cap */
import { XhrApi } from '@ewsjs/xhr';
import type { Appointment } from 'ews-javascript-api';
import {
FolderId,
CalendarView,
DateTime,
WellKnownFolderName,
Appointment,
BasePropertySet,
PropertySet,
ConfigurationApi,
Expand Down
2 changes: 1 addition & 1 deletion src/outlookCalendar/ipc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { safeStorage } from 'electron';

import { selectPersistableValues } from '../app/selectors';
import { handle } from '../ipc/main';
import { Server } from '../servers/common';
import type { Server } from '../servers/common';
import { dispatch, request, select } from '../store';
import {
OUTLOOK_CALENDAR_SET_CREDENTIALS,
Expand Down
2 changes: 1 addition & 1 deletion src/outlookCalendar/preload.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ipcRenderer } from 'electron';

import { OutlookEventsResponse } from './type';
import type { OutlookEventsResponse } from './type';

export const getOutlookEvents = async (
date: Date
Expand Down
2 changes: 1 addition & 1 deletion src/servers/common.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { OutlookCredentials } from '../outlookCalendar/type';
import type { OutlookCredentials } from '../outlookCalendar/type';

export type Server = {
url: string;
Expand Down
2 changes: 1 addition & 1 deletion src/servers/reducers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import type { Reducer } from 'redux';

import { APP_SETTINGS_LOADED } from '../app/actions';
import { DEEP_LINKS_SERVER_ADDED } from '../deepLinks/actions';
import type { ActionOf } from '../store/actions';
import { OUTLOOK_CALENDAR_SAVE_CREDENTIALS } from '../outlookCalendar/actions';
import type { ActionOf } from '../store/actions';
import {
ADD_SERVER_VIEW_SERVER_ADDED,
SIDE_BAR_REMOVE_SERVER_CLICKED,
Expand Down
2 changes: 1 addition & 1 deletion src/store/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ import type { I18nActionTypeToPayloadMap } from '../i18n/actions';
import type { JitsiServerActionTypeToPayloadMap } from '../jitsi/actions';
import type { NavigationActionTypeToPayloadMap } from '../navigation/actions';
import type { NotificationsActionTypeToPayloadMap } from '../notifications/actions';
import type { OutlookCalendarActionTypeToPayloadMap } from '../outlookCalendar/actions';
import type { ScreenSharingActionTypeToPayloadMap } from '../screenSharing/actions';
import type { ServersActionTypeToPayloadMap } from '../servers/actions';
import type { SpellCheckingActionTypeToPayloadMap } from '../spellChecking/actions';
import type { UiActionTypeToPayloadMap } from '../ui/actions';
import type { UpdatesActionTypeToPayloadMap } from '../updates/actions';
import type { UserPresenceActionTypeToPayloadMap } from '../userPresence/actions';
import type { OutlookCalendarActionTypeToPayloadMap } from '../outlookCalendar/actions';

type ActionTypeToPayloadMap = AppActionTypeToPayloadMap &
DeepLinksActionTypeToPayloadMap &
Expand Down
11 changes: 6 additions & 5 deletions src/ui/components/OutlookCredentialsDialog/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,23 @@ import {
TextInput,
ButtonGroup,
} from '@rocket.chat/fuselage';
import React, { FC, useEffect, useRef, useState, ReactElement } from 'react';
import type { FC, ReactElement } from 'react';
import React, { useEffect, useRef, useState } from 'react';
import { useForm, Controller } from 'react-hook-form';
import { useTranslation } from 'react-i18next';
import { useSelector, useDispatch } from 'react-redux';
import { Dispatch } from 'redux';
import type { Dispatch } from 'redux';

import {
OUTLOOK_CALENDAR_ASK_CREDENTIALS,
OUTLOOK_CALENDAR_DIALOG_DISMISSED,
OUTLOOK_CALENDAR_SET_CREDENTIALS,
} from '../../../outlookCalendar/actions';
import { Server } from '../../../servers/common';
import type { Server } from '../../../servers/common';
import { listen } from '../../../store';
import { RootAction } from '../../../store/actions';
import type { RootAction } from '../../../store/actions';
import { isRequest } from '../../../store/fsa';
import { RootState } from '../../../store/rootReducer';
import type { RootState } from '../../../store/rootReducer';
import { Dialog } from '../Dialog';

export type AuthPayload = {
Expand Down

0 comments on commit a903e36

Please sign in to comment.