Merge branch 'chats-fixes' into 'develop'

Small chats fixes & TSX conversions

See merge request soapbox-pub/soapbox-fe!1496
This commit is contained in:
Alex Gleason
2022-06-06 18:31:27 +00:00
10 changed files with 220 additions and 213 deletions

View File

@@ -21,7 +21,7 @@ const messages = defineMessages({
action: { id: 'search.action', defaultMessage: 'Search for “{query}”' },
});
function redirectToAccount(accountId: number, routerHistory: any) {
function redirectToAccount(accountId: string, routerHistory: any) {
return (_dispatch: any, getState: () => ImmutableMap<string, any>) => {
const acct = getState().getIn(['accounts', accountId, 'acct']);
@@ -97,7 +97,7 @@ const Search = (props: ISearch) => {
dispatch(showSearch());
};
const handleSelected = (accountId: number) => {
const handleSelected = (accountId: string) => {
dispatch(clearSearch());
dispatch(redirectToAccount(accountId, history));
};