Migrate profile popover from class to functional component (#25608)
* Migrate profile popover from class to functional component * Fix lint * Fix tests and minor fixes * Address feedback --------- Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
23fcb7728f
Коммит
77bdeb1c2b
@@ -20,7 +20,7 @@ import {isDateWithinDaysRange, TimeInformation} from 'utils/utils';
|
||||
|
||||
import type {GlobalState} from 'types/store';
|
||||
|
||||
export function makeGetCustomStatus(): (state: GlobalState, userID?: string) => UserCustomStatus {
|
||||
export function makeGetCustomStatus(): (state: GlobalState, userID?: string) => UserCustomStatus | undefined {
|
||||
return createSelector(
|
||||
'makeGetCustomStatus',
|
||||
(state: GlobalState, userID?: string) => (userID ? getUser(state, userID) : getCurrentUser(state)),
|
||||
|
||||
Ссылка в новой задаче
Block a user