Skip to content

Commit 9bdcb4e

Browse files
committed
Remove unused src/stores/models/Alert.js
This code should have been removed when mkAlert was defined as part of RSDEV-109 (commit 68290b248c08340657155be9e5357bba9ee84831 of the pre-os repository).
1 parent b7b84f7 commit 9bdcb4e

File tree

12 files changed

+2
-106
lines changed

12 files changed

+2
-106
lines changed

src/main/webapp/ui/src/Inventory/components/Inputs/PeopleField.js

-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import { withStyles } from "Styles";
2121
import { faSpinner, faHandHolding } from "@fortawesome/free-solid-svg-icons";
2222
import { library } from "@fortawesome/fontawesome-svg-core";
2323
import AlertContext, { mkAlert } from "../../../stores/contexts/Alert";
24-
import Alert from "../../../stores/models/Alert";
2524
library.add(faSpinner, faHandHolding);
2625

2726
const CustomAutocomplete = withStyles<

src/main/webapp/ui/src/components/Alerts/__tests__/Alerts.test.js

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import React, { useContext, useEffect } from "react";
77
import { render, cleanup, screen } from "@testing-library/react";
88
import "@testing-library/jest-dom";
99
import AlertContext, { mkAlert } from "../../../stores/contexts/Alert";
10-
import Alert from "../../../stores/models/Alert";
1110
import Alerts from "../Alerts";
1211

1312
beforeEach(() => {

src/main/webapp/ui/src/eln/apps/integrations/Dataverse.js

-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ import CardActions from "@mui/material/CardActions";
2323
import { useLocalObservable, observer } from "mobx-react-lite";
2424
import { runInAction, observable } from "mobx";
2525
import { doNotAwait } from "../../../util/Util";
26-
import Alert from "../../../stores/models/Alert";
2726
import AlertContext, { mkAlert } from "../../../stores/contexts/Alert";
2827
import { useDataverseTestEndpoint } from "../useDataverseTestEndpoint";
2928
import RsSet from "../../../util/set";

src/main/webapp/ui/src/eln/apps/integrations/Dryad.js

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import IntegrationCard from "../IntegrationCard";
1212
import { type IntegrationStates } from "../useIntegrationsEndpoint";
1313
import Button from "@mui/material/Button";
1414
import AlertContext, { mkAlert } from "../../../stores/contexts/Alert";
15-
import Alert from "../../../stores/models/Alert";
1615
import DryadIcon from "../icons/dryad.svg";
1716
import Link from "@mui/material/Link";
1817
import { useDryadEndpoint } from "../useDryad";

src/main/webapp/ui/src/eln/apps/integrations/GitHub.js

-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import TableHead from "@mui/material/TableHead";
1919
import TableBody from "@mui/material/TableBody";
2020
import Button from "@mui/material/Button";
2121
import { doNotAwait } from "../../../util/Util";
22-
import Alert from "../../../stores/models/Alert";
2322
import AlertContext, { mkAlert } from "../../../stores/contexts/Alert";
2423
import { runInAction, observable } from "mobx";
2524
import { observer, useLocalObservable } from "mobx-react-lite";

src/main/webapp/ui/src/eln/apps/integrations/MSTeams.js

-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import TableHead from "@mui/material/TableHead";
1919
import TableBody from "@mui/material/TableBody";
2020
import Button from "@mui/material/Button";
2121
import { doNotAwait } from "../../../util/Util";
22-
import Alert from "../../../stores/models/Alert";
2322
import AlertContext, { mkAlert } from "../../../stores/contexts/Alert";
2423
import { runInAction } from "mobx";
2524
import Card from "@mui/material/Card";

src/main/webapp/ui/src/eln/apps/integrations/NextCloud.js

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import React, {
1111
import IntegrationCard from "../IntegrationCard";
1212
import { type IntegrationStates } from "../useIntegrationsEndpoint";
1313
import AlertContext, { mkAlert } from "../../../stores/contexts/Alert";
14-
import Alert from "../../../stores/models/Alert";
1514
import Button from "@mui/material/Button";
1615
import NextCloudIcon from "../icons/nextcloud.svg";
1716
import { useNextcloudEndpoint } from "../useNextcloud";

src/main/webapp/ui/src/eln/apps/integrations/OwnCloud.js

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import React, {
1111
import IntegrationCard from "../IntegrationCard";
1212
import { type IntegrationStates } from "../useIntegrationsEndpoint";
1313
import AlertContext, { mkAlert } from "../../../stores/contexts/Alert";
14-
import Alert from "../../../stores/models/Alert";
1514
import Button from "@mui/material/Button";
1615
import OwnCloudIcon from "../icons/owncloud.svg";
1716
import { useOwncloudEndpoint } from "../useOwncloud";

src/main/webapp/ui/src/eln/apps/integrations/ProtocolsIO.js

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import IntegrationCard from "../IntegrationCard";
1212
import { type IntegrationStates } from "../useIntegrationsEndpoint";
1313
import Button from "@mui/material/Button";
1414
import AlertContext, { mkAlert } from "../../../stores/contexts/Alert";
15-
import Alert from "../../../stores/models/Alert";
1615
import ProtocolsIOIcon from "../icons/protocolsio.svg";
1716
import { useProtocolsioEndpoint } from "../useProtocolsio";
1817

src/main/webapp/ui/src/eln/apps/integrations/Slack.js

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import IntegrationCard from "../IntegrationCard";
1111
import { observable, runInAction } from "mobx";
1212
import { observer, useLocalObservable } from "mobx-react-lite";
1313
import { Optional } from "../../../util/optional";
14-
import Alert from "../../../stores/models/Alert";
1514
import AlertContext, { mkAlert } from "../../../stores/contexts/Alert";
1615
import { useSlackEndpoint } from "../useSlackEndpoint";
1716
import Button from "@mui/material/Button";

src/main/webapp/ui/src/stores/contexts/Alert.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ export function mkAlert(config: AlertParams): Alert {
9292
* To use, wrap the page in the Alert component
9393
* (../../components/Alerts/Alert.js) which creates an instance of this
9494
* context. Any components rendered anywhere in the component tree beneath the
95-
* component can simply do the following, importing `AlertContext` from this
96-
* file and `Alert` from "../models/Alert"
95+
* component can simply do the following, importing `AlertContext` and
96+
* `mkAlert` from this file:
9797
* ```
9898
* const { addAlert } = useContext(AlertContext);
9999
* addAlert(mkAlert({

src/main/webapp/ui/src/stores/models/Alert.js

-94
This file was deleted.

0 commit comments

Comments
 (0)