Make useOwnAccount return an object

This commit is contained in:
Alex Gleason
2023-06-25 12:35:09 -05:00
parent a8459ced75
commit d4eaf1e27a
53 changed files with 62 additions and 64 deletions

View File

@@ -31,7 +31,7 @@ const messages = defineMessages({
const GroupActionButton = ({ group }: IGroupActionButton) => {
const dispatch = useAppDispatch();
const intl = useIntl();
const account = useOwnAccount();
const { account } = useOwnAccount();
const joinGroup = useJoinGroup(group);
const leaveGroup = useLeaveGroup(group);

View File

@@ -27,7 +27,7 @@ interface IGroupActionButton {
}
const GroupOptionsButton = ({ group }: IGroupActionButton) => {
const account = useOwnAccount();
const { account } = useOwnAccount();
const dispatch = useAppDispatch();
const intl = useIntl();
const leaveGroup = useLeaveGroup(group);

View File

@@ -24,7 +24,7 @@ const getStatusIds = makeGetStatusIds();
const GroupTimeline: React.FC<IGroupTimeline> = (props) => {
const intl = useIntl();
const account = useOwnAccount();
const { account } = useOwnAccount();
const dispatch = useAppDispatch();
const composer = useRef<HTMLDivElement>(null);