123456789101112131415161718192021222324252627 |
- import {Component} from 'react';
- import ActorAvatar from 'app/components/avatar/actorAvatar';
- import {Actor} from 'app/types';
- type Value = {
- actor: Actor;
- };
- type Props = {
- value: Value;
- onRemove: (value: Value) => void;
- };
- export default class ValueComponent extends Component<Props> {
- handleClick = () => {
- this.props.onRemove(this.props.value);
- };
- render() {
- return (
- <a onClick={this.handleClick}>
- <ActorAvatar actor={this.props.value.actor} size={28} />
- </a>
- );
- }
- }
|