<commit_before>import React from 'react'
import Menu from './Menu'
// import { t } from '../app/locale'

export default class ContributeMenu extends React.PureComponent {
  render () {
    return (
      <Menu {...this.props}>
        <a href='https://github.com/streetmix/streetmix/' target='_blank'>
          <svg className='icon'>
            <use xlinkHref='#icon-github' />
          </svg>
          <span data-i18n='menu.contribute.opensource'>Contribute to open source</span>
        </a>
        <a href='https://opencollective.com/streetmix/' target='_blank'>
          <span data-i18n='menu.contribute.donate'>Donate</span>
        </a>
        <a href='https://www.stickermule.com/user/1069909781/stickers' target='_blank'>
          <span data-i18n='menu.contribute.stickers'>Buy a sticker sheet!</span>
        </a>
      </Menu>
    )
  }
}<commit_msg>Add tracking for contribute menu items, closes #668<commit_after>import React from 'react'
import Menu from './Menu'
import { trackEvent } from '../app/event_tracking'
// import { t } from '../app/locale'

export default class ContributeMenu extends React.PureComponent {
  onClickGitHub () {
    trackEvent('INTERACTION', '[Contribute menu] GitHub link clicked', null, null, false)
  }

  onClickDonate () {
    trackEvent('INTERACTION', '[Contribute menu] Donate link clicked', null, null, false)
  }

  onClickStickers () {
    trackEvent('INTERACTION', '[Contribute menu] Stickers link clicked', null, null, false)
  }

  render () {
    return (
      <Menu {...this.props}>
        <a href='https://github.com/streetmix/streetmix/' target='_blank' onClick={this.onClickGitHub}>
          <svg className='icon'>
            <use xlinkHref='#icon-github' />
          </svg>
          <span data-i18n='menu.contribute.opensource'>Contribute to open source</span>
        </a>
        <a href='https://opencollective.com/streetmix/' target='_blank' onClick={this.onClickDonate}>
          <span data-i18n='menu.contribute.donate'>Donate</span>
        </a>
        <a href='https://www.stickermule.com/user/1069909781/stickers' target='_blank' onClick={this.onClickStickers}>
          <span data-i18n='menu.contribute.stickers'>Buy a sticker sheet!</span>
        </a>
      </Menu>
    )
  }
}
{'fraction_non_alphanumeric': 0.15710503089143865, 'fraction_numerical': 0.015445719329214475, 'mean_word_length': 2.881849315068493, 'pattern_counts': {'":': 0, '<': 37, '<?xml version=': 0, '>': 37, 'https://': 6, 'lorem ipsum': 0, 'www.': 2, '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': '5756741', 'n_tokens_mistral': 745, 'n_tokens_neox': 703, 'n_words': 148}