Skip to content

Commit

Permalink
custom-fields: replace Cancel with Close btn in modal
Browse files Browse the repository at this point in the history
  • Loading branch information
ntarocco committed Feb 6, 2025
1 parent af316bb commit eb250fc
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
import React, { Component } from "react";
import { RemoveField } from "./RemoveField";
import { ListAndFilterCustomFields } from "./ListAndFilterCustomFields";
import { i18next } from "@translations/invenio_app_rdm/i18next";

Check warning on line 11 in src/lib/forms/widgets/custom_fields/AddDiscoverableFieldsModal.js

View workflow job for this annotation

GitHub Actions / Tests (18.x)

'i18next' is defined but never used

Check warning on line 11 in src/lib/forms/widgets/custom_fields/AddDiscoverableFieldsModal.js

View workflow job for this annotation

GitHub Actions / Tests (16.x)

'i18next' is defined but never used
import { importWidget } from "../loader";

import { Button, Icon, Modal } from "semantic-ui-react";

import PropTypes from "prop-types";
Expand Down Expand Up @@ -143,9 +143,8 @@ export class AddDiscoverableFieldsModal extends Component {
<Button
onClick={this.handleCancel}
floated="left"
icon="cancel"
labelPosition="left"
content="Cancel"
content={"Close"}

Check failure on line 147 in src/lib/forms/widgets/custom_fields/AddDiscoverableFieldsModal.js

View workflow job for this annotation

GitHub Actions / Tests (18.x)

Curly braces are unnecessary here

Check failure on line 147 in src/lib/forms/widgets/custom_fields/AddDiscoverableFieldsModal.js

View workflow job for this annotation

GitHub Actions / Tests (16.x)

Curly braces are unnecessary here
/>
<Button
icon
Expand Down

0 comments on commit eb250fc

Please sign in to comment.