Commit c094c5a3 authored by Viacheslav Pavlov's avatar Viacheslav Pavlov
Browse files

updated AddPartner button style

parent 49c9b582
......@@ -23,8 +23,8 @@ import { ScrollToTopOnMount } from 'ui/common/page/scrollers';
import ContentHeader from 'ui/common/heading/ContentHeader';
import BrowsePageTemplate from 'ui/pages/_base/BrowsePage';
import Page from 'model/Page';
import ContentHeaderWithButton from 'ui/common/heading/ContentHeaderWithButton';
import ActionButton from 'ui/common/buttons/ActionButton';
import ButtonBar from 'ui/common/buttons/ButtonBar';
class PartnerListPage extends BrowsePageTemplate<Partner> {
......@@ -50,19 +50,19 @@ class PartnerListPage extends BrowsePageTemplate<Partner> {
}>
<ScrollToTopOnMount/>
<ContentHeader title={ t('partners.public.p.browse.title') } subtitle={ t('partners.public.p.browse.subtitle') }/>
<Authorize role="ROLE_ADMINISTRATOR">
<ContentHeaderWithButton buttons={
<div>
<ActionButton title={ t('common:action.add', {what: t('partners.common.modelName') }) } action={ createPartner }/>
</div>
}/>
</Authorize>
<PaginationComponent
pageObj={ paged }
onSortChange={ this.onSortChange }
displayName="partners.common.modelName"
sortOptions={ Partner.SORT_OPTIONS }
infinite
actions={
<Authorize role="ROLE_ADMINISTRATOR">
<ButtonBar>
<ActionButton title={ t('common:action.add', {what: t('partners.common.modelName') }) } action={ createPartner }/>
</ButtonBar>
</Authorize>
}
/>
<PrettyFilters
prefix="partner"
......
......@@ -69,6 +69,7 @@ const styles = (theme) => ({
},
actions: {
margin: 0,
marginTop: 'auto' as 'auto',
'& button': {
margin: '0 4px',
},
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment