Skip to content

Commit

Permalink
Remove translate contribute link
Browse files Browse the repository at this point in the history
  • Loading branch information
Rustem Mussabekov committed Feb 2, 2024
1 parent f95f108 commit 782d758
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions src/routes/settings/app/lang.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,19 @@ import _ from 'lodash'
import { connect } from 'react-redux'
import { set } from '~data/actions/config'
import supported from '~assets/languages/index.json'
import config from '~config'

import { Label } from '~co/common/form'
import Select from '~co/common/select'
import Button from '~co/common/button'
import Icon from '~co/common/icon'

class SettingsAppLang extends React.Component {
static defaultProps = {
showContribute: true
}

list = _.sortBy(Object.entries(supported), ([key, label])=>label)

onChange = (e)=>{
this.props.set('lang', e.target.value)
}

render() {
const { lang, showContribute } = this.props
const { lang } = this.props

return (
<>
Expand All @@ -39,16 +32,6 @@ class SettingsAppLang extends React.Component {
<option key={key} value={key}>{label}</option>
)}
</Select>

{showContribute && (
<Button
href={config.links.translation}
target='_blank'
variant='flat'>
<Icon name='open' size='micro' />
Help us
</Button>
)}
</div>
</>
)
Expand Down

0 comments on commit 782d758

Please sign in to comment.