bigbuffet-rw/app/soapbox/features/developers/index.js

51 lines
1.6 KiB
JavaScript
Raw Normal View History

import React from 'react';
import PropTypes from 'prop-types';
2021-11-01 22:16:52 -07:00
import { FormattedMessage, injectIntl, defineMessages } from 'react-intl';
import { Link } from 'react-router-dom';
import Column from '../ui/components/column';
2021-11-01 22:16:52 -07:00
import Icon from 'soapbox/components/icon';
const messages = defineMessages({
heading: { id: 'column.developers', defaultMessage: 'Developers' },
});
export default @injectIntl
class Developers extends React.Component {
static propTypes = {
intl: PropTypes.object.isRequired,
}
render() {
const { intl } = this.props;
return (
<Column heading={intl.formatMessage(messages.heading)}>
2021-11-01 22:16:52 -07:00
<div className='dashcounters'>
<div className='dashcounter'>
<Link to='/developers/apps/create'>
2021-11-01 22:16:52 -07:00
<div className='dashcounter__icon'>
<Icon src={require('@tabler/icons/icons/apps.svg')} />
2021-11-01 22:16:52 -07:00
</div>
<div className='dashcounter__label'>
<FormattedMessage id='developers.navigation.app_create_label' defaultMessage='Create an app' />
2021-11-01 22:16:52 -07:00
</div>
</Link>
</div>
<div className='dashcounter'>
<Link to='/error'>
<div className='dashcounter__icon'>
<Icon src={require('@tabler/icons/icons/mood-sad.svg')} />
</div>
<div className='dashcounter__label'>
<FormattedMessage id='developers.navigation.intentional_error_label' defaultMessage='Trigger an error' />
</div>
</Link>
</div>
</div>
</Column>
);
}
}