-
Notifications
You must be signed in to change notification settings - Fork 10.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Convert to TS RoomAutoComplete (#25536)
Co-authored-by: Guilherme Gazzo <guilhermegazzo@gmail.com>
- Loading branch information
1 parent
150c6b4
commit 707a622
Showing
3 changed files
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
import { Options } from '@rocket.chat/fuselage'; | ||
import React, { ReactElement } from 'react'; | ||
import React, { FC } from 'react'; | ||
|
||
import RoomAvatar from '../avatar/RoomAvatar'; | ||
|
||
type AvatarProps = { | ||
value: string; | ||
type: string; | ||
avatarETag?: string | undefined; | ||
avatarETag?: string; | ||
}; | ||
|
||
const Avatar = ({ value, type, avatarETag, ...props }: AvatarProps): ReactElement => ( | ||
<RoomAvatar size={Options.AvatarSize} room={{ t: type, type, _id: value, avatarETag }} {...props} /> | ||
const Avatar: FC<AvatarProps> = ({ value, type, avatarETag, ...props }) => ( | ||
<RoomAvatar size={Options.AvatarSize} room={{ type, _id: value, avatarETag }} {...props} /> | ||
); | ||
|
||
export default Avatar; |
2 changes: 1 addition & 1 deletion
2
apps/meteor/client/components/RoomAutoComplete/RoomAutoComplete.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters