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>
Этот коммит содержится в:
Daniel Espino García
2024-01-15 09:28:43 +01:00
коммит произвёл GitHub
родитель 23fcb7728f
Коммит 77bdeb1c2b
52 изменённых файлов: 1826 добавлений и 5992 удалений

Просмотреть файл

@@ -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)),