* Add select user screen to select owner and task assignee
* Fix i18n
* Add tests
* Address feedback
* Fix test
* Address UX feedback
* Fix test
* Put the no assignee button inline with the search
(cherry picked from commit a5d7bf7db4)
Co-authored-by: Daniel Espino García <larkox@gmail.com>
20 lines
620 B
TypeScript
20 lines
620 B
TypeScript
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
import {withDatabase, withObservables} from '@nozbe/watermelondb/react';
|
|
|
|
import {observeUser} from '@queries/servers/user';
|
|
|
|
import SelectedUserChipById from './selected_user_chip_by_id';
|
|
|
|
import type {WithDatabaseArgs} from '@typings/database/database';
|
|
|
|
type OwnProps = WithDatabaseArgs & {
|
|
userId: string;
|
|
}
|
|
|
|
const enhanced = withObservables(['userId'], ({database, userId}: OwnProps) => ({
|
|
user: observeUser(database, userId),
|
|
}));
|
|
|
|
export default withDatabase(enhanced(SelectedUserChipById));
|