* 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>
33 lines
780 B
TypeScript
33 lines
780 B
TypeScript
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
import React from 'react';
|
|
|
|
import UserChip from './user_chip';
|
|
|
|
import type UserModel from '@typings/database/models/servers/user';
|
|
|
|
type SelectedChipProps = {
|
|
user: UserModel | UserProfile;
|
|
onPress: (id: string) => void;
|
|
testID?: string;
|
|
teammateNameDisplay: string;
|
|
}
|
|
|
|
export default function SelectedUserChip({
|
|
testID,
|
|
user,
|
|
teammateNameDisplay,
|
|
onPress,
|
|
}: SelectedChipProps) {
|
|
return (
|
|
<UserChip
|
|
testID={testID}
|
|
onPress={onPress}
|
|
actionIcon='remove'
|
|
showAnimation={true}
|
|
teammateNameDisplay={teammateNameDisplay}
|
|
user={user}
|
|
/>
|
|
);
|
|
}
|