Skip to content

Commit

Permalink
use icon button for linking events/plannings
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaskikutis committed Nov 8, 2024
1 parent f302610 commit 2257ce9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions client/components/MultiSelectActions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -169,16 +169,16 @@ export class MultiSelectActionsComponent extends React.PureComponent<IProps> {

if (canAddSomeRelatedPlanningsToEventEditor(selectedPlannings, lockedItems)) {
tools.push(
<Button
<IconButton
key={4}
onClick={() => {
addSomeRelatedPlanningsToEventEditor(selectedPlannings, lockedItems)
.then(() => {
this.handleDeSelectAll();
});
}}
hollow
text={gettextPlural(
icon="link"
ariaValue={gettextPlural(
selectedPlannings.length,
'Add as related planning',
'Add as related plannings',
Expand Down Expand Up @@ -266,16 +266,16 @@ export class MultiSelectActionsComponent extends React.PureComponent<IProps> {

if (canAddSomeEventsAsRelatedToPlanningEditor(selectedEvents)) {
tools.push(
<Button
<IconButton
key={5}
onClick={() => {
addSomeEventsAsRelatedToPlanningEditor(selectedEvents)
.then(() => {
this.handleDeSelectAll();
});
}}
hollow
text={gettextPlural(selectedEvents.length, 'Add as related event', 'Add as related events')}
icon="link"
ariaValue={gettextPlural(selectedEvents.length, 'Add as related event', 'Add as related events')}
/>
);
}
Expand Down

0 comments on commit 2257ce9

Please sign in to comment.