From 0861b1fbec91d639be97424ca618991855eeefb5 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Mon, 25 May 2020 19:05:02 +0100 Subject: [PATCH] remove redundant props Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/components/views/avatars/BaseAvatar.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/views/avatars/BaseAvatar.js b/src/components/views/avatars/BaseAvatar.js index 4ece5baead..508691e5fd 100644 --- a/src/components/views/avatars/BaseAvatar.js +++ b/src/components/views/avatars/BaseAvatar.js @@ -26,7 +26,7 @@ import MatrixClientContext from "../../../contexts/MatrixClientContext"; import {useEventEmitter} from "../../../hooks/useEventEmitter"; import {toPx} from "../../../utils/units"; -const useImageUrl = ({url, urls, idName, name, defaultToInitialLetter}) => { +const useImageUrl = ({url, urls}) => { const [imageUrls, setUrls] = useState([]); const [urlsIndex, setIndex] = useState(); @@ -86,7 +86,7 @@ const BaseAvatar = (props) => { ...otherProps } = props; - const [imageUrl, onError] = useImageUrl({url, urls, idName, name, defaultToInitialLetter}); + const [imageUrl, onError] = useImageUrl({url, urls}); if (!imageUrl && defaultToInitialLetter) { const initialLetter = AvatarLogic.getInitialLetter(name);