Remove the unused joinNames helper from the typing indicator.
This commit is contained in:
@@ -15,9 +15,6 @@ import { useTypingVerbs } from '../../hooks/useUserTypingVerb';
|
|||||||
|
|
||||||
const DEFAULT_VERB = 'typing';
|
const DEFAULT_VERB = 'typing';
|
||||||
|
|
||||||
const joinNames = (parts: string[]): string =>
|
|
||||||
parts.length === 1 ? parts[0] : `${parts.slice(0, -1).join(', ')} and ${parts[parts.length - 1]}`;
|
|
||||||
|
|
||||||
export type RoomViewTypingProps = {
|
export type RoomViewTypingProps = {
|
||||||
room: Room;
|
room: Room;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user