diff --git a/src/components/EventReports.js b/src/components/EventReports.js
index 7e9c2a3..8185960 100644
--- a/src/components/EventReports.js
+++ b/src/components/EventReports.js
@@ -98,26 +98,23 @@ export const ReportShow = props => {
);
};
-export const ReportList = ({ ...props }) => {
- return (
-
}
- sort={{ field: "received_ts", order: "DESC" }}
- bulkActionButtons={false}
- >
-
-
-
-
-
-
-
-
- );
-};
+export const ReportList = props => (
+
}
+ sort={{ field: "received_ts", order: "DESC" }}
+ >
+
+
+
+
+
+
+
+
+);
diff --git a/src/components/ImportFeature.js b/src/components/ImportFeature.js
index d30d302..c0066fe 100644
--- a/src/components/ImportFeature.js
+++ b/src/components/ImportFeature.js
@@ -32,7 +32,7 @@ function TranslatableOption({ value, text }) {
return ;
}
-const FilePicker = props => {
+const FilePicker = () => {
const [values, setValues] = useState(null);
const [error, setError] = useState(null);
const [stats, setStats] = useState(null);
@@ -191,7 +191,7 @@ const FilePicker = props => {
return true;
};
- const runImport = async e => {
+ const runImport = async _e => {
if (progress !== null) {
notify("import_users.errors.already_in_progress");
return;
@@ -307,7 +307,7 @@ const FilePicker = props => {
let retries = 0;
const submitRecord = recordData => {
return dataProvider.getOne("users", { id: recordData.id }).then(
- async alreadyExists => {
+ async _alreadyExists => {
if (LOGGING) console.log("already existed");
if (useridMode === "update" || conflictMode === "skip") {
@@ -332,7 +332,7 @@ const FilePicker = props => {
}
}
},
- async okToSubmit => {
+ async _okToSubmit => {
if (LOGGING)
console.log(
"OK to create record " +
diff --git a/src/components/RegistrationTokens.js b/src/components/RegistrationTokens.js
index 97a2581..779feec 100644
--- a/src/components/RegistrationTokens.js
+++ b/src/components/RegistrationTokens.js
@@ -54,30 +54,28 @@ const dateFormatter = v => {
const registrationTokenFilters = [];
-export const RegistrationTokenList = props => {
- return (
-
-
-
-
-
-
-
-
-
- );
-};
+export const RegistrationTokenList = props => (
+
+
+
+
+
+
+
+
+
+);
export const RegistrationTokenCreate = props => (
@@ -104,24 +102,22 @@ export const RegistrationTokenCreate = props => (
);
-export const RegistrationTokenEdit = props => {
- return (
-
-
-
-
-
-
-
-
-
- );
-};
+export const RegistrationTokenEdit = props => (
+
+
+
+
+
+
+
+
+
+);
diff --git a/src/components/RoomDirectory.js b/src/components/RoomDirectory.js
index 84d4027..4fbcca7 100644
--- a/src/components/RoomDirectory.js
+++ b/src/components/RoomDirectory.js
@@ -102,16 +102,16 @@ export const RoomDirectorySaveButton = () => {
const refresh = useRefresh();
const [create, { isloading }] = useCreate();
- const handleSend = values => {
+ const handleSend = () => {
create(
"room_directory",
{ data: { id: record.id } },
{
- onSuccess: data => {
+ onSuccess: _data => {
notify("resources.room_directory.action.send_success");
refresh();
},
- onError: error =>
+ onError: _error =>
notify("resources.room_directory.action.send_failure", {
type: "error",
}),
diff --git a/src/components/destinations.js b/src/components/destinations.js
index 6027258..cdd9e99 100644
--- a/src/components/destinations.js
+++ b/src/components/destinations.js
@@ -42,7 +42,7 @@ const destinationRowSx = (record, _index) => ({
const destinationFilters = [];
-export const DestinationReconnectButton = props => {
+export const DestinationReconnectButton = () => {
const record = useRecordContext();
const refresh = useRefresh();
const notify = useNotify();
@@ -83,13 +83,13 @@ export const DestinationReconnectButton = props => {
);
};
-const DestinationShowActions = props => (
+const DestinationShowActions = () => (
);
-const DestinationTitle = props => {
+const DestinationTitle = () => {
const record = useRecordContext();
const translate = useTranslate();
return (
diff --git a/src/components/devices.js b/src/components/devices.js
index e467c39..313bb47 100644
--- a/src/components/devices.js
+++ b/src/components/devices.js
@@ -44,6 +44,7 @@ export const DeviceRemoveButton = props => {
return (
<>