Skip to content

Commit

Permalink
Use i18next hook
Browse files Browse the repository at this point in the history
  • Loading branch information
Johennes committed Sep 12, 2024
1 parent b1b226d commit 8e21453
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/home/CallList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { MatrixClient } from "matrix-js-sdk/src/client";
import { RoomMember } from "matrix-js-sdk/src/models/room-member";
import { Room } from "matrix-js-sdk/src/models/room";
import { FC, useCallback, MouseEvent, useState } from "react";
import { t } from "i18next";
import { useTranslation } from "react-i18next";
import { IconButton } from "@vector-im/compound-web";
import { CloseIcon } from "@vector-im/compound-design-tokens/assets/web/icons";
import classNames from "classnames";
Expand Down Expand Up @@ -60,6 +60,7 @@ interface CallTileProps {
}

const CallTile: FC<CallTileProps> = ({ name, avatarUrl, room, client }) => {
const { t } = useTranslation();
const roomEncryptionSystem = useRoomEncryptionSystem(room.roomId);
const [isLeaving, setIsLeaving] = useState(false);

Expand Down

0 comments on commit 8e21453

Please sign in to comment.