dappros/ethora

View on GitHub
client-reactnative/src/components/RoomList/LeftAndRightDragAction.tsx

Summary

Maintainability
A
2 hrs
Test Coverage

Function LeftActions has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const LeftActions = (props: LeftActionsProps) => {
  const {toggleNotification, swipeRef, name, jid, renameChat} = props;
  const {chatStore} = useStores();
  return (
    <>

Function RightActions has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const RightActions = (props: RightActionsProps) => {
  const {jid, leaveChat, swipeRef} = props;
  const jidWithoutConference = jid?.split('@')[0];
  const isDefaultChat = checkIsDefaultChat(jidWithoutConference);
  const {loginStore} = useStores();

There are no issues that match your filters.

Category
Status