Merge pull request #21245 from ramonlsouza/sonarcloud-set24

refactor: sonarcloud alerts
This commit is contained in:
Anton Georgiev 2024-09-24 13:52:50 -04:00 committed by GitHub
commit 575091b4b9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 2 additions and 9 deletions

View File

@ -506,10 +506,7 @@ const ChatMessageForm: React.FC<ChatMessageFormProps> = ({
return renderForm();
};
// eslint-disable-next-line no-empty-pattern
const ChatMessageFormContainer: React.FC = ({
// connected, move to network status
}) => {
const ChatMessageFormContainer: React.FC = () => {
const intl = useIntl();
const idChatOpen: string = layoutSelect((i: Layout) => i.idChatOpen);
const isRTL = layoutSelect((i: Layout) => i.isRTL);

View File

@ -274,7 +274,6 @@ const RecordingIndicator: React.FC<RecordingIndicatorProps> = ({
setShouldNotify((prev) => !prev);
}}
priority="high"
setIsOpen={setIsRecordingNotifyModalOpen}
isOpen={isRecordingNotifyModalOpen}
closeModal={() => {
setIsRecordingNotifyModalOpen(false);

View File

@ -1,4 +1,4 @@
import React, { Dispatch, SetStateAction, useCallback } from 'react';
import React, { useCallback } from 'react';
import { defineMessages, useIntl } from 'react-intl';
import { USER_LEAVE_MEETING } from '/imports/ui/core/graphql/mutations/userMutations';
import { useMutation } from '@apollo/client';
@ -40,8 +40,6 @@ const LOGOUT_CODE = '680';
interface RecordingNotifyModalProps {
toggleShouldNotify: () => void;
closeModal: () => void;
// eslint-disable-next-line react/no-unused-prop-types
setIsOpen: Dispatch<SetStateAction<boolean>>;
isOpen: boolean;
priority: string;
}

View File

@ -1094,7 +1094,6 @@ const Whiteboard = React.memo((props) => {
adjustedZoom = calculateZoomWithGapValue(
currentPresentationPage.scaledWidth,
currentPresentationPage.scaledHeight,
false,
widthGap,
);