From b09f6f8c17a8974748a6aca262d706db392800b1 Mon Sep 17 00:00:00 2001 From: dklimpel <5740567+dklimpel@users.noreply.github.com> Date: Mon, 5 Feb 2024 21:40:07 +0100 Subject: [PATCH] remove `...props` --- src/components/EventReports.js | 5 ++--- src/components/RegistrationTokens.js | 4 ++-- src/components/destinations.js | 2 -- src/components/rooms.js | 2 +- src/components/statistics.js | 1 - src/components/users.js | 5 ++--- 6 files changed, 7 insertions(+), 12 deletions(-) diff --git a/src/components/EventReports.js b/src/components/EventReports.js index 7e9c2a3..70ecc04 100644 --- a/src/components/EventReports.js +++ b/src/components/EventReports.js @@ -31,7 +31,7 @@ const ReportPagination = props => ( export const ReportShow = props => { const translate = useTranslate(); return ( - + { ); }; -export const ReportList = ({ ...props }) => { +export const ReportList = () => { return ( } sort={{ field: "received_ts", order: "DESC" }} bulkActionButtons={false} diff --git a/src/components/RegistrationTokens.js b/src/components/RegistrationTokens.js index 28213e5..2b776cb 100644 --- a/src/components/RegistrationTokens.js +++ b/src/components/RegistrationTokens.js @@ -85,7 +85,7 @@ export const RegistrationTokenList = props => { }; export const RegistrationTokenCreate = props => ( - + }> ( export const RegistrationTokenEdit = props => { return ( - + diff --git a/src/components/destinations.js b/src/components/destinations.js index 1a734a9..3934809 100644 --- a/src/components/destinations.js +++ b/src/components/destinations.js @@ -108,7 +108,6 @@ const DestinationTitle = props => { export const DestinationList = props => { return ( } pagination={} sort={{ field: "destination", order: "ASC" }} @@ -135,7 +134,6 @@ export const DestinationShow = props => { } title={} - {...props} > }> diff --git a/src/components/rooms.js b/src/components/rooms.js index eff2f16..10b87fa 100644 --- a/src/components/rooms.js +++ b/src/components/rooms.js @@ -98,7 +98,7 @@ const RoomShowActions = ({ data, resource }) => { export const RoomShow = props => { const translate = useTranslate(); return ( - } title={}> + } title={}> }> diff --git a/src/components/statistics.js b/src/components/statistics.js index 603cba1..ffced5d 100644 --- a/src/components/statistics.js +++ b/src/components/statistics.js @@ -60,7 +60,6 @@ const UserMediaStatsFilter = props => ( export const UserMediaStatsList = props => { return ( } filters={} pagination={} diff --git a/src/components/users.js b/src/components/users.js index 1e21c90..a836ab5 100644 --- a/src/components/users.js +++ b/src/components/users.js @@ -152,7 +152,6 @@ const UserBulkActionButtons = props => ( export const UserList = props => { return ( } filterDefaultValues={{ guests: true, deactivated: false }} sort={{ field: "name", order: "ASC" }} @@ -263,7 +262,7 @@ const UserEditActions = ({ data }) => { }; export const UserCreate = props => ( - + @@ -319,7 +318,7 @@ const UserTitle = props => { export const UserEdit = props => { const translate = useTranslate(); return ( - } actions={}> + } actions={}> }>