mirror of
https://github.com/ascribe/onion.git
synced 2024-11-15 17:45:10 +01:00
03e0bbd024
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
490 B
JavaScript
22 lines
490 B
JavaScript
'use strict';
|
|
|
|
import React from 'react';
|
|
|
|
import AclButton from './acl_button';
|
|
|
|
import { getLangText } from '../../../utils/lang_utils';
|
|
|
|
let ConsignButton = React.createClass({
|
|
render() {
|
|
return (
|
|
<AclButton
|
|
{...this.props}
|
|
action='acl_consign'
|
|
title={getLangText('Consign artwork')}
|
|
tooltip={getLangText('Have someone else sell the artwork')} />
|
|
);
|
|
}
|
|
});
|
|
|
|
export default ConsignButton;
|