Max - Add CSS styling to dropdown and button [skip ci]
This commit is contained in:
parent
80f4281ab1
commit
8722c85742
|
@ -98,7 +98,6 @@ class PeopleList extends React.Component {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
getPages() {
|
||||
return Math.ceil(this.props.list.length / this.props.pageSize);
|
||||
}
|
||||
|
|
|
@ -28,14 +28,15 @@ class AdminPanelStaffMembers extends React.Component {
|
|||
}
|
||||
|
||||
render() {
|
||||
console.log(this.state.staffList);
|
||||
return (
|
||||
<div>
|
||||
<div className="admin-panel-staff-members">
|
||||
<Header title={i18n('STAFF_MEMBERS')} description={i18n('STAFF_MEMBERS_DESCRIPTION')} />
|
||||
<DropDown {...this.getDepartmentDropdownProps()} />
|
||||
<Button size="medium" onClick={() => {}} type="secondary" className="">
|
||||
<Icon name="user-plus" className=""/> {i18n('ADD_NEW_STAFF')}
|
||||
</Button>
|
||||
<div className="admin-panel-staff-members__wrapper">
|
||||
<DropDown {...this.getDepartmentDropdownProps()} className="admin-panel-staff-members__dropdown" />
|
||||
<Button size="medium" onClick={() => {}} type="secondary" className="admin-panel-staff-members__button">
|
||||
<Icon name="user-plus" className=""/> {i18n('ADD_NEW_STAFF')}
|
||||
</Button>
|
||||
</div>
|
||||
{(this.state.loading) ? <Loading backgrounded /> : <PeopleList list={this.getStaffList()} />}
|
||||
</div>
|
||||
);
|
||||
|
|
|
@ -0,0 +1,17 @@
|
|||
@import "../../../../scss/vars";
|
||||
|
||||
.admin-panel-staff-members {
|
||||
|
||||
&__wrapper {
|
||||
height: 60px;
|
||||
}
|
||||
|
||||
&__dropdown {
|
||||
float: left;
|
||||
}
|
||||
|
||||
&__button {
|
||||
float: right;
|
||||
margin-top: -5px;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue