Skip to content

Commit

Permalink
chore: remove duplicated code
Browse files Browse the repository at this point in the history
  • Loading branch information
dougfabris committed Apr 3, 2024
1 parent 6fc2e69 commit eb04c32
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 115 deletions.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ import { GenericTable, GenericTableHeaderCell, GenericTableBody, GenericTableHea
import { useSort } from '../../../../../../components/GenericTable/hooks/useSort';
import ChannelDeletionTableRow from './ChannelDeletionTableRow';

type ChannelDeletationTable = {
type ChannelDeletionTableProps = {
rooms: Serialized<IRoom>[];
onToggleAllRooms: () => void;
onChangeRoomSelection: (room: Serialized<IRoom>) => void;
selectedRooms: { [key: string]: Serialized<IRoom> };
};

const ChannelDeletionTable = ({ rooms, onChangeRoomSelection, selectedRooms, onToggleAllRooms }: ChannelDeletationTable) => {
const ChannelDeletionTable = ({ rooms, onChangeRoomSelection, selectedRooms, onToggleAllRooms }: ChannelDeletionTableProps) => {
const t = useTranslation();
const { sortBy, sortDirection, setSort } = useSort<'name' | 'usersCount'>('name');

Expand Down

0 comments on commit eb04c32

Please sign in to comment.