mirror of
https://github.com/ascribe/onion.git
synced 2024-06-30 21:52:08 +02:00
AclButton’s form building is now delegated to AclFormFactory so other components can use the same forms with ease. Its show/hide behaviour is also now controlled with AclProxy.
22 lines
523 B
JavaScript
22 lines
523 B
JavaScript
'use strict';
|
|
|
|
import React from 'react';
|
|
|
|
import AclButton from './acl_button';
|
|
|
|
import { getLangText } from '../../../utils/lang_utils';
|
|
|
|
let LoanButton = React.createClass({
|
|
render() {
|
|
return (
|
|
<AclButton
|
|
{...this.props}
|
|
action='acl_loan_request'
|
|
title={getLangText('Loan artwork')}
|
|
tooltip={getLangText('Someone requested you to loan your artwork for a limited period of time')} />
|
|
);
|
|
}
|
|
});
|
|
|
|
export default LoanButton;
|