Skip to content

Commit

Permalink
style: align remove button on the right side
Browse files Browse the repository at this point in the history
  • Loading branch information
alisher-epam committed Nov 9, 2023
1 parent da8a1c2 commit 632cc04
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions lib/Donors/Donors.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.donorUnassignButton {
margin-left: auto !important;
}
4 changes: 3 additions & 1 deletion lib/Donors/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import {
TextLink,
} from '@folio/stripes/components';

import css from './Donors.css';

const getDonorUrl = (orgId) => {
if (orgId) {
return `/organizations/view/${orgId}`;
Expand All @@ -21,10 +23,10 @@ export const getDonorsFormatter = ({ canViewOrganizations, fields, intl }) => ({
...getDonorsListFormatter({ canViewOrganizations }),
unassignDonor: donor => (
<Button
align="end"
aria-label={intl.formatMessage({ id: 'stripes-acq-components.donors.button.unassign' })}
buttonStyle="fieldControl"
type="button"
buttonClass={css.donorUnassignButton}
onClick={(e) => {
e.preventDefault();
fields.remove(donor._index);
Expand Down

0 comments on commit 632cc04

Please sign in to comment.