RocketChat/Rocket.Chat

View on GitHub
apps/meteor/client/views/room/contextualBar/Info/hooks/useRoomActions.ts

Summary

Maintainability
A
3 hrs
Test Coverage

Function useRoomActions has 81 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const useRoomActions = (room: IRoom, options: UseRoomActionsOptions) => {
    const { onClickEnterRoom, onClickEdit, resetState } = options;

    const t = useTranslation();
    const handleHide = useRoomHide(room);

    There are no issues that match your filters.

    Category
    Status