Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions app/threads/client/components/ThreadComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const ThreadComponent: FC<{
const channelRoute = useRoute(roomTypes.getConfig(room.t).route.name);
const threadMessage = useThreadMessage(mid);

const open = useTabBarOpenUserInfo();
const openUserInfo = useTabBarOpenUserInfo();

const ref = useRef<Element>(null);
const uid = useUserId();
Expand Down Expand Up @@ -107,7 +107,7 @@ const ThreadComponent: FC<{
following,
subscription,
rid: room._id,
openProfileTab: open,
tabBar: { openUserInfo },
}));

useEffect(() => {
Expand All @@ -122,10 +122,10 @@ const ThreadComponent: FC<{
following,
subscription,
rid: room._id,
openProfileTab: open,
tabBar: { openUserInfo },
};
});
}, [following, jump, open, room._id, subscription, threadMessage]);
}, [following, jump, openUserInfo, room._id, subscription, threadMessage]);

useEffect(() => {
if (!ref.current || !viewData.mainMessage) {
Expand Down
4 changes: 2 additions & 2 deletions app/ui/client/views/app/lib/getCommonRoomEvents.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ export const getCommonRoomEvents = () => ({
target: e.currentTarget,
open: (e) => {
e.preventDefault();
instance.data.openProfileTab(username);
instance.data.tabBar.openUserInfo(username);
},
});
}
Expand Down Expand Up @@ -309,7 +309,7 @@ export const getCommonRoomEvents = () => ({
target: e.currentTarget,
open: (e) => {
e.preventDefault();
instance.data.openProfileTab(username);
instance.data.tabBar.openUserInfo(username);
},
});
}
Expand Down
3 changes: 1 addition & 2 deletions client/components/UserCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,8 @@ const Roles = ({ children }) => <Info rcx-user-card__roles m='neg-x2' flexWrap='
{children}
</Info>;

const Role = ({ children }) => <Box m='x2'><Tag
const Role = ({ children }) => <Box m='x2' fontScale='c2'><Tag
disabled
fontScale='c2'
children={children}
/></Box>;

Expand Down