Skip to content

Commit c80b674

Browse files
fix lint errors
Signed-off-by: saurabhraghuvanshii <saurabhsraghuvanshi@gmail.com>
1 parent 1ea05bc commit c80b674

File tree

7 files changed

+9
-14
lines changed

7 files changed

+9
-14
lines changed

src/actors/utils.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
// disbale stict no any for now for full file
22
/* eslint-disable @typescript-eslint/no-explicit-any */
33

4-
import { AnyActorRef, AnyEventObject, assign, enqueueActions, sendTo } from 'xstate';
4+
import { AnyEventObject, assign, enqueueActions, sendTo } from 'xstate';
55
import { AnyActorSystem } from 'xstate/dist/declarations/src/system';
66
import { workerEvents } from './worker/events';
77

8-
type ContextWithReturnAddress = { returnAddress: AnyActorRef };
98

109
export const sendToActor = (actor: string, event: AnyEventObject) =>
1110
sendTo(({ system }: { system: AnyActorSystem }) => {

src/custom/DashboardWidgets/GettingStartedWidget/InviteUserModal.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -103,14 +103,14 @@ export default function UserInviteModal({
103103
const orgs = data?.organizations;
104104
const defaultOrgSelection = { id: 'none', name: 'None' };
105105
const [organization, setOrganization] = useState<Organization>(defaultOrgSelection);
106-
106+
107107
// Query to check if user exists by email (only if hook is provided)
108-
const { data: existingUserData } = useGetUserByEmailQuery
109-
? useGetUserByEmailQuery(
110-
{ email: inviteeEmail },
111-
{ skip: !inviteeEmail || !EMAIL_REGEXP.test(inviteeEmail) }
112-
)
113-
: { data: null };
108+
const shouldSkipUserQuery = !useGetUserByEmailQuery || !inviteeEmail || !EMAIL_REGEXP.test(inviteeEmail);
109+
const { data: existingUserData } = useGetUserByEmailQuery?.({
110+
email: inviteeEmail
111+
}, {
112+
skip: shouldSkipUserQuery
113+
}) || { data: null };
114114

115115
const { data: providerRolesData } = useGetUserOrgRolesQuery({
116116
orgId: currentOrgId,

src/custom/Feedback/style.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import {
77
CULTURED,
88
DARK_JUNGLE_GREEN,
99
DARK_KEPPEL,
10-
DARK_SLATE_GRAY,
1110
KEPPEL,
1211
MEDIUM_GREY,
1312
SNOW_WHITE,

src/custom/TransferModal/TransferList/style.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { Grid2, styled } from '@mui/material';
22
import { Button, Chip, Paper, Typography } from '../../../base';
33

4-
import { KEPPEL } from '../../../theme';
54

65
export const StyledChip = styled(Chip)(({ theme }) => ({
76
padding: '5px 6px !important',

src/custom/UniversalFilter.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import { Paper } from '../base/Paper';
99
import { Select } from '../base/Select';
1010
import { FilterIcon } from '../icons';
1111
import { useTheme } from '../theme';
12-
import { darkModalGradient, lightModalGradient } from '../theme/colors/colors';
1312
import PopperListener from './PopperListener';
1413
import { TooltipIcon } from './TooltipIconButton';
1514

src/icons/Calender/CalenderIcon.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { FC } from 'react';
2-
import { KEPPEL_GREEN_FILL } from '../../constants/constants';
32
import { IconProps } from '../types';
43
import { useTheme } from './../../theme/index';
54

src/icons/Idea/IdeaIcon.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { FC } from 'react';
2-
import { DEFAULT_HEIGHT, DEFAULT_WIDTH, KEPPEL_GREEN_FILL } from '../../constants/constants';
2+
import { DEFAULT_HEIGHT, DEFAULT_WIDTH } from '../../constants/constants';
33
import { IconProps } from '../types';
44
import { useTheme } from './../../theme/index';
55
const IdeaIcon: FC<IconProps> = ({ width = DEFAULT_WIDTH, height = DEFAULT_HEIGHT, ...props }) => {

0 commit comments

Comments
 (0)