<commit_before>///
// Dependencies
///

import React, { Component } from 'react';

import CardsListItem from '../elements/CardsListItem';
import ButtonsList from '../elements/ButtonsList';
import ButtonsListMenu from '../elements/ButtonsListMenu';
import ButtonsListMenuItem from '../elements/ButtonsListMenuItem';
import TabSetsLogo from '../elements/TabSetsLogo';

import * as actions from './actions';


///
// View
///

class TabsetsListItemView extends Component {
	processItem(item) {
		return item.set('href', '/app/tabsets/' + this.props.item.get('id'));
	}

	render() {
		const defaultLogoIcon = (
			<TabSetsLogo />
		);

		return (
			<CardsListItem
				item={this.processItem(this.props.item)}
				defaultLogoIcon={defaultLogoIcon}
				width="2x"
				horizontal
			>
				<ButtonsList>
					<ButtonsListMenu id="tabsetsItemMenu">
						<ButtonsListMenuItem
							icon="times"
							title="Delete"
							action={actions.removeItemStart(this.props.item.toJS())}
						/>
						<ButtonsListMenuItem
							icon="pencil"
							title="Edit"
							action={actions.editItemStart(this.props.item.toJS())}
						/>
					</ButtonsListMenu>
				</ButtonsList>
			</CardsListItem>
		);
	}
}

export default TabsetsListItemView;
<commit_msg>Changing order of edit and delete buttons<commit_after>///
// Dependencies
///

import React, { Component } from 'react';

import CardsListItem from '../elements/CardsListItem';
import ButtonsList from '../elements/ButtonsList';
import ButtonsListMenu from '../elements/ButtonsListMenu';
import ButtonsListMenuItem from '../elements/ButtonsListMenuItem';
import TabSetsLogo from '../elements/TabSetsLogo';

import * as actions from './actions';


///
// View
///

class TabsetsListItemView extends Component {
	processItem(item) {
		return item.set('href', '/app/tabsets/' + this.props.item.get('id'));
	}

	render() {
		const defaultLogoIcon = (
			<TabSetsLogo />
		);

		return (
			<CardsListItem
				item={this.processItem(this.props.item)}
				defaultLogoIcon={defaultLogoIcon}
				width="2x"
				horizontal
			>
				<ButtonsList>
					<ButtonsListMenu id="tabsetsItemMenu">
						<ButtonsListMenuItem
							icon="pencil"
							title="Edit"
							action={actions.editItemStart(this.props.item.toJS())}
						/>
						<ButtonsListMenuItem
							icon="times"
							title="Delete"
							action={actions.removeItemStart(this.props.item.toJS())}
						/>
					</ButtonsListMenu>
				</ButtonsList>
			</CardsListItem>
		);
	}
}

export default TabsetsListItemView;

{'fraction_non_alphanumeric': 0.1422893481717011, 'fraction_numerical': 0.000794912559618442, 'mean_word_length': 3.2879045996592846, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4529656', 'n_tokens_mistral': 970, 'n_tokens_neox': 787, 'n_words': 144}