You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.2 KiB
TypeScript
39 lines
1.2 KiB
TypeScript
import React from 'react';
|
|
import classNames from 'classnames';
|
|
|
|
import { SessionButton, SessionButtonColor } from '../SessionButton';
|
|
|
|
interface Props {
|
|
title: string;
|
|
description: string;
|
|
onClick: any;
|
|
}
|
|
|
|
export class SessionLinkedDeviceListItem extends React.Component<Props> {
|
|
public constructor(props: Props) {
|
|
super(props);
|
|
}
|
|
|
|
public render(): JSX.Element {
|
|
const { title, description, onClick } = this.props;
|
|
|
|
return (
|
|
<div className={classNames('session-settings-item', 'inline')} >
|
|
<div className="session-settings-item__info">
|
|
<div className="session-settings-item__title">{title}</div>
|
|
<div className="session-settings-item__description">
|
|
{description}
|
|
</div>
|
|
</div>
|
|
<div className="session-settings-item__content">
|
|
<SessionButton
|
|
text={window.i18n('unpairDevice')}
|
|
buttonColor={SessionButtonColor.Danger}
|
|
onClick={onClick}
|
|
/>
|
|
</div>
|
|
</div >
|
|
);
|
|
}
|
|
}
|