Skip to content

Commit

Permalink
UIU-2951: remove css styling and move the logic to stripes-components
Browse files Browse the repository at this point in the history
  • Loading branch information
alisher-epam committed Oct 10, 2023
1 parent 488747d commit 3b64431
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 20 deletions.
5 changes: 0 additions & 5 deletions src/components/LostItemsLink/LostItemsLink.css

This file was deleted.

4 changes: 0 additions & 4 deletions src/components/LostItemsLink/LostItemsLink.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,8 @@ import {
LOST_ITEM_STATUSES,
} from '../../views/LostItems/constants';

import css from './LostItemsLink.css';

const LostItemsLink = ({ disabled }) => {
const history = useHistory();
const disabledButtonClassName = disabled ? css.disabledButton : '';

return (
<IfPermission perm="ui-users.lost-items.requiring-actual-cost">
Expand All @@ -34,7 +31,6 @@ const LostItemsLink = ({ disabled }) => {
}}
disabled={disabled}
buttonStyle="dropdownItem"
buttonClass={disabledButtonClassName}
>
<Icon icon="edit">
<FormattedMessage id="ui-users.actionMenu.lostItems" />
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ import { IfPermission } from '@folio/stripes/core';

import { getRequestUrl } from '../util';

import css from './RequestFeeFineBlockButtons.css';

class RequestFeeFineBlockButtons extends React.Component {
static propTypes = {
barcode: PropTypes.string,
Expand All @@ -31,7 +29,6 @@ class RequestFeeFineBlockButtons extends React.Component {
disabled,
} = this.props;
const createRequestUrl = getRequestUrl(barcode, userId);
const disabledButtonClassName = disabled ? css.disabledButton : '';

return (
<div data-test-actions-menu>
Expand All @@ -42,7 +39,6 @@ class RequestFeeFineBlockButtons extends React.Component {
to={createRequestUrl}
onClick={onToggle}
disabled={disabled}
buttonClass={disabledButtonClassName}
>
<Icon icon="plus-sign">
<FormattedMessage id="ui-users.requests.createRequest" />
Expand All @@ -56,7 +52,6 @@ class RequestFeeFineBlockButtons extends React.Component {
to={{ pathname: `/users/${userId}/charge` }}
onClick={onToggle}
disabled={disabled}
buttonClass={disabledButtonClassName}
>
<Icon icon="plus-sign">
<FormattedMessage id="ui-users.accounts.chargeManual" />
Expand All @@ -74,7 +69,6 @@ class RequestFeeFineBlockButtons extends React.Component {
search: location.search,
}}
onClick={onToggle}
buttonClass={disabledButtonClassName}
>
<Icon icon="plus-sign">
<FormattedMessage id="ui-users.blocks.buttons.add" />
Expand Down

0 comments on commit 3b64431

Please sign in to comment.